comment_notification_text
Filters the comment notification email text.
Использование
add_filter( 'comment_notification_text', 'wp_kama_comment_notification_text_filter', 10, 2 ); /** * Function for `comment_notification_text` filter-hook. * * @param string $notify_message The comment notification email text. * @param string $comment_id Comment ID as a numeric string. * * @return string */ function wp_kama_comment_notification_text_filter( $notify_message, $comment_id ){ // filter... return $notify_message; }
- $notify_message(строка)
- The comment notification email text.
- $comment_id(строка)
- Comment ID as a numeric string.
Список изменений
С версии 1.5.2 | Введена. |
Где вызывается хук
comment_notification_text
wp-includes/pluggable.php 1833
$notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID );