comment_notification_subject

过滤钩子


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

过滤评论通知邮件的主题。

$subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID );