wc_review_ratings_enabled()WC 3.6.0

Check if reviews ratings are enabled.

No Hooks.

Return

true|false.

Usage

wc_review_ratings_enabled();

Changelog

Since 3.6.0 Introduced.

wc_review_ratings_enabled() code WC 8.9.0

function wc_review_ratings_enabled() {
	return wc_reviews_enabled() && 'yes' === get_option( 'woocommerce_enable_review_rating' );
}