Advertisement
teastudio

Overwrite title by filters from WooCommerce Products Carouse

Aug 14th, 2015
1,069
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement