woocommerce_product_reviews_table_column_(column_name)
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 | Введена. |
Где вызывается хук
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 );