woocommerce_product_reviews_list_table
Filters the contents of the product reviews list table output.
Использование
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(строка)
- The HTML output of the list table.
- $reviews_list_table(ReviewsListTable)
- The reviews list table instance.
Список изменений
| С версии 6.7.0 | Введена. |
Где вызывается хук
woocommerce_product_reviews_list_table
woocommerce/src/Internal/Admin/ProductReviews/Reviews.php 604
echo apply_filters( 'woocommerce_product_reviews_list_table', ob_get_clean(), $this->reviews_list_table ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped