Created
July 16, 2020 07:30
-
-
Save digitalchild/181c3693bf66732a3e3d3ae878c3a44a to your computer and use it in GitHub Desktop.
Put the reviews somewhere else on the page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove the reviews tab | |
add_filter( 'woocommerce_product_tabs', 'remove_reviews_tab' ); | |
function remove_reviews_tab( $tabs ){ | |
WC_Vendors::log( $tabs ); | |
unset( $tabs['reviews'] ); | |
return $tabs; | |
} | |
//load the reviews after the tbas | |
add_action( 'woocommerce_after_main_content', 'load_reviews_after_tabs' ); | |
function load_reviews_after_tabs(){ | |
wc_get_template( 'single-product-reviews.php' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment