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

comment_notification_headers。這個過濾鉤允許開發者修改評論通知郵件的標題。

過濾評論通知的電子郵件標題。

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

常見問題

FAQs
檢視更多 >