notify_moderator хук-фильтр . WP 4.4.0
Filters whether to send the site moderator email notifications, overriding the site setting.
Использование
add_filter( 'notify_moderator', 'filter_function_name_2249', 10, 2 ); function filter_function_name_2249( $maybe_notify, $comment_ID ){ // filter... return $maybe_notify; }
- $maybe_notify(true/false)
- Whether to notify blog moderator.
- $comment_ID(число)
- The id of the comment for the notification.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
notify_moderator
notify_moderator
wp-includes/pluggable.php 1747
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );
wp-includes/comment.php 2299
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_ID );