comment_notification_notify_author
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'comment_notification_notify_author', bool $notify, string $comment_id )
Описание
По умолчанию авторы комментариев не уведомляются об их комментариях к собственным записям. Этот фильтр позволяет изменить это поведение.
Оригинал (английский)
By default, comment authors aren’t notified of their comments on their own posts. This filter allows you to override that.
Фильтруемое значение
Параметры
$notify
bool
обязательный
$comment_id
string
обязательный
Исходный код
wp-includes/pluggable.php:1798
$notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID );
История изменений
| Версия | Описание |
|---|---|
| 3.8.0 | Introduced. |

