woocommerce_product_reviews_table_column_(column_name)_content
Filters the output of a column.
Usage
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(string)
- The column output.
- $item(WP_Comment)
- The product review being rendered.
Changelog
Since 6.7.0 | Introduced. |
Where the hook is called
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 );