WordPress filter hook
woocommerce_product_review_comment_form_args
Defined by WooCommerce and fired by 17 plugins in total, running on 7.1M+ sites between them.
“Filters the comment form arguments.”
How to use woocommerce_product_review_comment_form_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_comment_form_args', function( $comment_form ) {
// Change $comment_form here.
return $comment_form;
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
17 plugins that fire woocommerce_product_review_comment_form_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_comment_form_args', $comment_form )src/Blocks/BlockTypes/Reviews/ProductReviewForm.php:168 -
Customer Reviews for WooCommerce80,000+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )templates/cr-single-product-reviews.php:155 -
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce8,000+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )templates/modules/advanced-reviews/modal.php:135 -
The Pack Elementor addon2,000+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )includes/woocommerce/comments.php:133 -
ThemeREX eCommerce Extensions for Elementor900+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )core/modules/widgets/single-product-tabs/templates/partials/review-form.php:86 -
StoreBuild400+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $storebuild_comment_form )public/woocommerce/single-product-reviews.php:141 -
Food Online for WooCommerce300+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )classes/class-fdoe-ajax.php:97 -
Visual Builder200+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )inc/woocommerce/single-product/single-product-review.php:319 -
YayReviews100+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )templates/review-form/native-form.php:104 -
Educat Elementor LMS Addon20+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )includes/comments.php:124 -
Flowbox10+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )template/woocommerce/single-product-reviews.php:136 -
Template Builder Elementor10+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )includes/elementor/widgets/woocommerce/templates/tmpenvo-woo-reviewform.php:87 -
PiWeb Customer review / Product review for WooCommerce10+ installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )templates/single-product-reviews-template-1.php:153 -
Australcode Product Reviews & Review Reminders for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_product_review_comment_form_args', $args )src/Frontend/FormShortcode.php:194 -
CodeFlist Smart Product Review Lite For WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_product_review_comment_form_args', $cfsprlw_comment_form )templates/cfsprlw-product-reviews.php:209 -
WPInterface Product Reviews for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_product_review_comment_form_args', $wpipr_form )templates/reviews/form.php:115 -
Combine Reviews for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form )frontend/wcr-single-product-reviews-tab-content.php:99
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.