woocommerce_product_review_comment_form_args
Filters the comment form arguments.
* * @since 9.9.0 * @param array $comment_form The comment form arguments. * @param int $post_id The post ID.
Usage
add_filter( 'woocommerce_product_review_comment_form_args', 'wp_kama_woocommerce_product_review_comment_form_args_filter' );
/**
* Function for `woocommerce_product_review_comment_form_args` filter-hook.
*
* @param $comment_form
*
* @return
*/
function wp_kama_woocommerce_product_review_comment_form_args_filter( $comment_form ){
// filter...
return $comment_form;
}
- $comment_form
- -
Where the hook is called
woocommerce_product_review_comment_form_args
woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewForm.php 155
comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ), $block->context['postId'] );
woocommerce/templates/single-product-reviews.php 138
comment_form( apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ) );