woocommerce_admin_dashboard_recent_reviews хук-фильтрWC 1.0

translators: %s: review author

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

add_filter( 'woocommerce_admin_dashboard_recent_reviews', 'wp_kama_woocommerce_admin_dashboard_recent_reviews_filter', 10, 2 );

/**
 * Function for `woocommerce_admin_dashboard_recent_reviews` filter-hook.
 * 
 * @param  $post_title 
 * @param  $comment    
 *
 * @return 
 */
function wp_kama_woocommerce_admin_dashboard_recent_reviews_filter( $post_title, $comment ){

	// filter...
	return $post_title;
}
$post_title
-
$comment
-

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

WC_Admin_Dashboard::recent_reviews()
woocommerce_admin_dashboard_recent_reviews
woocommerce/includes/admin/class-wc-admin-dashboard.php 381
echo '<h4 class="meta"><a href="' . esc_url( get_permalink( $comment->ID ) ) . '#comment-' . esc_attr( absint( $comment->comment_ID ) ) . '">' . esc_html( apply_filters( 'woocommerce_admin_dashboard_recent_reviews', $comment->post_title, $comment ) ) . '</a> ' . sprintf( esc_html__( 'reviewed by %s', 'woocommerce' ), esc_html( $comment->comment_author ) ) . '</h4>';

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

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