Last active
June 23, 2022 12:04
-
-
Save braddalton/a5fc774549599b74c718417413192a6f to your computer and use it in GitHub Desktop.
WooCommerce Remove Star Rating Per Product https://wpsites.net/?p=110511
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
add_action( 'woocommerce_before_single_product_summary', 'remove_single_rating' ); | |
function remove_single_rating() { | |
if ( ! empty ( get_post_meta( get_the_ID(), 'remove_rating', true ) ) ) { | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment