woocommerce_review_order_rating_labels
Filter the labels shown under the star-rating control.
Usage
add_filter( 'woocommerce_review_order_rating_labels', 'wp_kama_woocommerce_review_order_rating_labels_filter' ); /** * Function for `woocommerce_review_order_rating_labels` filter-hook. * * @param array$labels Map of rating value (1-5) to label. * * @return array
- $labels(array<int,)
- string> $labels Map of rating value (1-5) to label.
Changelog
Since 10.8.0 Introduced. Where the hook is called
woocommerce_review_order_rating_labelswoocommerce/src/Internal/OrderReviews/StarRating.php 98$filtered = (array) apply_filters( 'woocommerce_review_order_rating_labels', $labels );Where the hook is used in WooCommerce
Usage not found.