Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'template_redirect', 'bb_clean_start_page_without_tabs_upsell_related', 1 );
- function bb_clean_start_page_without_tabs_upsell_related(){
- // remove product tabs, upsell and related products IF
- // the page is the selected front page by using
- // WP is_front_page function
- if( is_front_page() ) {
- remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); // Product tabs
- remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); // Upsells
- remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); // Related products
- } }
Add Comment
Please, Sign In to add comment