Advertisement
pixedelic

sherkx_front_product filter

Sep 24th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2. if ( !function_exists('sherkx_front_product') ) :
  3. add_filter('woocommerce_show_page_title','sherkx_front_product');
  4. function sherkx_front_product() {
  5.     if ( is_singular('product'))
  6.         return false;
  7. }
  8. endif;
  9.  
  10. if ( !function_exists('sherkx_front_product_bodyclass') ) :
  11. add_filter('body_class','sherkx_front_product_bodyclass');
  12. function sherkx_front_product_bodyclass($classes) {
  13.     if ( is_singular('product'))
  14.         $classes[] = 'page-template-templatesfront-page-php';
  15.  
  16.     return $classes;
  17. }
  18. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement