Viewing 1 replies (of 1 total)
  • Rodolfo Melogli

    (@businessbloomer)

    Here you go- I had the same problem!

    // --------------------------
    // Remove Author Box from Single Product Pages
    
    add_action( 'template_redirect', 'bbloomer_remove_author_box' );
    
    function bbloomer_remove_author_box() {
    if (is_product()) {
    remove_filter('the_content', 'insert_wp_about_author');
    }
    }

    You can also change “is_product()” with any other conditional logic e.g. WooCommerce category, WordPress single ID, blog category, etc.

Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce Products Exclusion’ is closed to new replies.