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:
定義位置
相關勾子
comment_notification_textcomment_moderation_subjectcomment_notification_recipientscomment_notification_headerscomment_notification_notify_author
相關方法
wpmu_welcome_notificationwpmu_welcome_user_notificationthe_comments_navigationcomment_form_titlewp_comment_trashnoticecomments_number
引入
1.5.2
棄用
-

comment_notification_subject: 這個過濾器允許你修改當有新評論釋出時發出的電子郵件通知的主題。

過濾評論通知郵件的主題。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID );
$subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID );
$subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID );

常見問題

FAQs
檢視更多 >