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:
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.
-
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 -
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 -
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 -
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 -
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 -
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 -
YayReviews100+ installs
apply_filters( 'woocommerce_comment_pagination_args', array( 'prev_text' => is_rtl() ? '→' : '←', 'next_text' => is_rtl() ? '←' : '→', 'type' => 'list', ) )templates/reviews-section.php:72 -
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 -
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 -
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 -
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.