woocommerce_product_reviews_list_table
Filters the contents of the product reviews list table output.
Usage
add_filter( 'woocommerce_product_reviews_list_table', 'wp_kama_woocommerce_product_reviews_list_table_filter', 10, 2 ); /** * Function for `woocommerce_product_reviews_list_table` filter-hook. * * @param string $output The HTML output of the list table. * @param ReviewsListTable $reviews_list_table The reviews list table instance. * * @return string */ function wp_kama_woocommerce_product_reviews_list_table_filter( $output, $reviews_list_table ){ // filter... return $output; }
- $output(string)
- The HTML output of the list table.
- $reviews_list_table(ReviewsListTable)
- The reviews list table instance.
Changelog
Since 6.7.0 | Introduced. |
Where the hook is called
woocommerce_product_reviews_list_table
woocommerce/src/Internal/Admin/ProductReviews/Reviews.php 584
echo apply_filters( 'woocommerce_product_reviews_list_table', ob_get_clean(), $this->reviews_list_table ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped