woocommerce_product_reviews_list_table_prepare_items_args
Provides an opportunity to alter the comment query arguments used within the product reviews admin list table.
Usage
add_filter( 'woocommerce_product_reviews_list_table_prepare_items_args', 'wp_kama_woocommerce_product_reviews_list_table_prepare_items_args_filter' ); /** * Function for `woocommerce_product_reviews_list_table_prepare_items_args` filter-hook. * * @param array $args Comment query args. * * @return array */ function wp_kama_woocommerce_product_reviews_list_table_prepare_items_args_filter( $args ){ // filter... return $args; }
- $args(array)
- Comment query args.
Changelog
Since 7.0.0 | Introduced. |
Where the hook is called
woocommerce_product_reviews_list_table_prepare_items_args
woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php 106
$args = (array) apply_filters( 'woocommerce_product_reviews_list_table_prepare_items_args', $args );