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