Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Created July 16, 2020 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalchild/181c3693bf66732a3e3d3ae878c3a44a to your computer and use it in GitHub Desktop.
Save digitalchild/181c3693bf66732a3e3d3ae878c3a44a to your computer and use it in GitHub Desktop.
Put the reviews somewhere else on the page
<?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