woocommerce_review_order_rating_labels
Filter the labels shown under the star-rating control.
Использование
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.
Список изменений
С версии 10.8.0 Введена. Где вызывается хук
woocommerce_review_order_rating_labelswoocommerce/src/Internal/OrderReviews/StarRating.php 98$filtered = (array) apply_filters( 'woocommerce_review_order_rating_labels', $labels );Где используется хук в WooCommerce
Использование не найдено.