comment_notification_headers

过滤钩子


apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID )
参数
  • (string)
    $message_headers
    Headers for the comment notification email.
    Required:
  • (string)
    $comment_id
    Comment ID as a numeric string.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 1826
引入
1.5.2
弃用

过滤评论通知的电子邮件标题。

$message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID );