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.
Использование
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(массив)
- Comment query args.
Список изменений
С версии 7.0.0 | Введена. |
Где вызывается хук
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 );