comment_notification_text хук-фильтр . WP 1.5.2
Filters the comment notification email text.
Использование
add_filter( 'comment_notification_text', 'filter_function_name_734', 10, 2 ); function filter_function_name_734( $notify_message, $comment_id ){ // filter... return $notify_message; }
- $notify_message(строка)
- The comment notification email text.
- $comment_id(число)
- Comment ID.
Список изменений
С версии 1.5.2 | Введена. |
Где вызывается хук
comment_notification_text
wp-includes/pluggable.php 1686
$notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID );