allow_empty_comment хук-фильтр . WP 1.0
This filter is documented in wp-includes/comment.php
Использование
add_filter( 'allow_empty_comment', 'filter_function_name_2830', 10, 2 ); function filter_function_name_2830( $false, $comment ){ // filter... return $false; }
- $false
- -
- $comment
- -
Где вызывается хук
allow_empty_comment
allow_empty_comment
wp-includes/class-wp-xmlrpc-server.php 3941
$allow_empty = apply_filters( 'allow_empty_comment', false, $comment );
wp-includes/comment.php 3552
$allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata );
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php 1892
$allow_empty = apply_filters( 'allow_empty_comment', false, $check );