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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) templates/single-product-reviews.php:53
  2. Customer Reviews for WooCommerce icon 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
  3. ThemeREX eCommerce Extensions for Elementor icon 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
  4. Subscriptions for WooCommerce Recurring Payments with Membership Content Restriction icon 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
  5. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_product_review_list_args', array('callback' => 'woocommerce_comments') ) public/widgets/elementor/single-product-reviews.php:262
  6. Visual Builder icon 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
  7. YayReviews icon YayReviews100+ installs apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) templates/reviews-section.php:66
  8. PiWeb Customer review / Product review for WooCommerce icon 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
  9. Flowbox icon Flowbox10+ installs apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => 'woocommerce_comments' ) ) template/woocommerce/single-product-reviews.php:44
  10. BrikFront Page Builder for WooCommerce: Wishlist, Quick View, Variation Swatches & Side Cart icon 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
  11. Combine Reviews for WooCommerce icon 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.