WordPress filter hook
woocommerce_product_review_list_args
Defined by WooCommerce and fired by 11 plugins in total, running on 7.1M+ sites between them.
How to use woocommerce_product_review_list_args
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_product_review_list_args', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Customer Reviews for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
11 plugins that fire woocommerce_product_review_list_args
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )templates/single-product-reviews.php:53 -
Customer Reviews for WooCommerce80,000+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => array( 'CR_Reviews', 'callback_comments' ), 'max_depth' => 5, 'reverse_top_level' => false, 'per_page' => self::$per_page, 'page' => $page, 'echo' => false, 'cr_hide_avatars' => $hide_avatars ) )includes/reviews/class-cr-ajax-reviews.php:306 -
ThemeREX eCommerce Extensions for Elementor900+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )core/modules/widgets/single-product-tabs/templates/partials/reviews-list.php:35 -
Subscriptions for WooCommerce Recurring Payments with Membership Content Restriction800+ installs
apply_filters( 'woocommerce_product_review_list_args', array('callback' => 'woocommerce_comments') )src/Features/MembersAccess/views/comment-restricted.php:35 -
StoreBuild400+ installs
apply_filters( 'woocommerce_product_review_list_args', array('callback' => 'woocommerce_comments') )public/widgets/elementor/single-product-reviews.php:262 -
Visual Builder200+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => function( $comment, $args, $depth ) use ( $data ) { vb_woocommerce_comments( $comment, $args, $depth, $data ); }) )inc/woocommerce/single-product/single-product-review.php:222 -
YayReviews100+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )templates/reviews-section.php:66 -
PiWeb Customer review / Product review for WooCommerce10+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments', 'per_page' => $per_page, 'page' => $page ) )public/class-reviewdisplay.php:98 -
Flowbox10+ installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )template/woocommerce/single-product-reviews.php:44 -
BrikFront Page Builder for WooCommerce: Wishlist, Quick View, Variation Swatches & Side CartFewer than 10 installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )modules/reviews/class-api.php:255 -
Combine Reviews for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) )frontend/wcr-combine-reviews.php:26
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.