teastudio

Overwrite title by filters from WooCommerce Products Carouse

Aug 14th, 2015
572
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_woocommerce_products_carousel_all_in_one_item_title( $title, $params ) {
  2.     $title = '<h3 class="woocommerce-products-carousel-all-in-one-title">';
  3.             $title .= '<a href="'. $params['product_url'] .'" title="'. $params['product']->post->post_title .'">'. $params['product']->post->post_title .'</a>';
  4.     $title .= '</h3>';    
  5.  
  6.     return $title;
  7. }
  8. add_filter('woocommerce_products_carousel_all_in_one_item_title', 'my_woocommerce_products_carousel_all_in_one_item_title', 1, 2);
RAW Paste Data