woocommerce_product_reviews_pending_count хук-фильтрWC 7.0.0

Provides an opportunity to alter the pending comment count used within the product reviews admin list table.


add_filter( 'woocommerce_product_reviews_pending_count', 'wp_kama_woocommerce_product_reviews_pending_count_filter' );

 * Function for `woocommerce_product_reviews_pending_count` filter-hook.
 * @param array $count Current count of comments pending review.
 * @return array
function wp_kama_woocommerce_product_reviews_pending_count_filter( $count ){

	// filter...
	return $count;
Current count of comments pending review.

Список изменений

С версии 7.0.0 Введена.

Где вызывается хук

woocommerce/src/Internal/Admin/ProductReviews/Reviews.php 487
$count = apply_filters( 'woocommerce_product_reviews_pending_count', $count );

Где используется хук в WooCommerce

Использование не найдено.