WordPress at a glance
function is not described

wc_review_ratings_enabled() WC 3.6.0

Check if reviews ratings are enabled.

No Hooks.

Return

true|false. Nothing.

Usage

wc_review_ratings_enabled();

Changelog

Since 3.6.0 Introduced.

Code of wc_review_ratings_enabled() WC 5.3.0

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