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:

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

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) src/Blocks/BlockTypes/Reviews/ProductReviewForm.php:168
  2. Customer Reviews for WooCommerce icon Customer Reviews for WooCommerce80,000+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) templates/cr-single-product-reviews.php:155
  3. Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce icon 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
  4. The Pack Elementor addon icon The Pack Elementor addon2,000+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) includes/woocommerce/comments.php:133
  5. ThemeREX eCommerce Extensions for Elementor icon 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
  6. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $storebuild_comment_form ) public/woocommerce/single-product-reviews.php:141
  7. Food Online for WooCommerce icon Food Online for WooCommerce300+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) classes/class-fdoe-ajax.php:97
  8. Visual Builder icon Visual Builder200+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) inc/woocommerce/single-product/single-product-review.php:319
  9. YayReviews icon YayReviews100+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) templates/review-form/native-form.php:104
  10. Educat Elementor LMS Addon icon Educat Elementor LMS Addon20+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) includes/comments.php:124
  11. Flowbox icon Flowbox10+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) template/woocommerce/single-product-reviews.php:136
  12. Template Builder Elementor icon Template Builder Elementor10+ installs apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) includes/elementor/widgets/woocommerce/templates/tmpenvo-woo-reviewform.php:87
  13. PiWeb Customer review / Product review for WooCommerce icon 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
  14. Australcode Product Reviews & Review Reminders for WooCommerce icon Australcode Product Reviews & Review Reminders for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_product_review_comment_form_args', $args ) src/Frontend/FormShortcode.php:194
  15. CodeFlist Smart Product Review Lite For WooCommerce icon 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
  16. WPInterface Product Reviews for WooCommerce icon WPInterface Product Reviews for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_product_review_comment_form_args', $wpipr_form ) templates/reviews/form.php:115
  17. Combine Reviews for WooCommerce icon 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.