WordPress filter hook

woocommerce_comment_pagination_args

Defined by WooCommerce and fired by 11 plugins in total, running on 7.1M+ sites between them.

How to use woocommerce_comment_pagination_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_comment_pagination_args', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from Breview's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

11 plugins that fire woocommerce_comment_pagination_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_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) templates/single-product-reviews.php:60
  2. Customer Reviews for WooCommerce icon Customer Reviews for WooCommerce80,000+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => '←', 'next_text' => '→', 'type' => 'list', ) ) templates/cr-single-product-reviews.php:66
  3. ThemeREX eCommerce Extensions for Elementor icon ThemeREX eCommerce Extensions for Elementor900+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) core/modules/widgets/single-product-tabs/templates/partials/reviews-list.php:42
  4. Subscriptions for WooCommerce Recurring Payments with Membership Content Restriction icon Subscriptions for WooCommerce Recurring Payments with Membership Content Restriction800+ installs apply_filters( 'woocommerce_comment_pagination_args', array('type' => 'list') ) src/Features/MembersAccess/views/comment-restricted.php:39
  5. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) public/woocommerce/single-product-reviews.php:56
  6. Funtionalities for Alpus theme icon Funtionalities for Alpus theme100+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'echo' => false, 'prev_text' => '<i class="' . ALPUS_ICON_PREFIX . '-icon-long-arrow-left"></i>' . esc_html__( 'Prev', 'alpus-core' ), 'next_text' => esc_html__( 'Next', 'alpus-core' ) . '<i class="' . ALPUS_ICON_PREFIX . '-icon-long-arrow-right"></i>', ) ) framework/common-functions.php:571
  7. YayReviews icon YayReviews100+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) templates/reviews-section.php:72
  8. Flowbox icon Flowbox10+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) template/woocommerce/single-product-reviews.php:51
  9. PiWeb Customer review / Product review for WooCommerce icon PiWeb Customer review / Product review for WooCommerce10+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) ) templates/single-product-reviews-template-1.php:67
  10. Breview icon Breview10+ installs apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'total' => get_comment_pages_count( $comments_data ), 'type' => 'list', ) ) templates/product/review-design-default.php:48
  11. Combine Reviews for WooCommerce icon Combine Reviews for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_comment_pagination_args', $args ) frontend/wcr-combine-reviews.php:58

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.