woocommerce_product_reviews_table_column_(column_name)_content хук-фильтрWC 6.7.0

Filters the output of a column.

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

add_filter( 'woocommerce_product_reviews_table_column_(column_name)_content', 'wp_kama_woocommerce_product_reviews_table_column_name_content_filter', 10, 2 );

/**
 * Function for `woocommerce_product_reviews_table_column_(column_name)_content` filter-hook.
 * 
 * @param string     $output The column output.
 * @param WP_Comment $item   The product review being rendered.
 *
 * @return string
 */
function wp_kama_woocommerce_product_reviews_table_column_name_content_filter( $output, $item ){

	// filter...
	return $output;
}
$output(строка)
The column output.
$item(WP_Comment)
The product review being rendered.

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

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

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

ReviewsListTable::filter_column_output()
woocommerce_product_reviews_table_column_(column_name)_content
woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php 1283
return (string) apply_filters( 'woocommerce_product_reviews_table_column_' . $column_name . '_content', $output, $item );

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

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