comment_moderation_text
Filters the comment moderation email text.
Использование
add_filter( 'comment_moderation_text', 'wp_kama_comment_moderation_text_filter', 10, 2 ); /** * Function for `comment_moderation_text` filter-hook. * * @param string $notify_message Text of the comment moderation email. * @param int $comment_id Comment ID. * * @return string */ function wp_kama_comment_moderation_text_filter( $notify_message, $comment_id ){ // filter... return $notify_message; }
- $notify_message(строка)
- Text of the comment moderation email.
- $comment_id(int)
- Comment ID.
Список изменений
С версии 1.5.2 | Введена. |
Где вызывается хук
comment_moderation_text
wp-includes/pluggable.php 2018
$notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id );