woocommerce_product_reviews_table_column_(column_name) хук-событиеWC 6.7.0

Fires when the default column output is displayed for a single row.

This action can be used to render custom columns that have been added.

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

add_action( 'woocommerce_product_reviews_table_column_(column_name)', 'wp_kama_woocommerce_product_reviews_table_column_name_action' );

/**
 * Function for `woocommerce_product_reviews_table_column_(column_name)` action-hook.
 * 
 * @param WP_Comment $item The review or reply being rendered.
 *
 * @return void
 */
function wp_kama_woocommerce_product_reviews_table_column_name_action( $item ){

	// action...
}
$item(WP_Comment)
The review or reply being rendered.

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

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

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

ReviewsListTable::column_default()
woocommerce_product_reviews_table_column_(column_name)
woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php 1260
do_action( 'woocommerce_product_reviews_table_column_' . $column_name, $item );

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

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