woocommerce_product_review_comment_form_args
Filters the comment form arguments.
Использование
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 array $comment_form The comment form arguments. * * @return array */ function wp_kama_woocommerce_product_review_comment_form_args_filter( $comment_form ){ // filter... return $comment_form; }
- $comment_form(массив)
- The comment form arguments.
Список изменений
С версии 9.9.0 | Введена. |
Где вызывается хук
woocommerce_product_review_comment_form_args
woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewForm.php 144
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 ) );