wp_mail_content_type

過濾鉤子
apply_filters( 'wp_mail_content_type', $content_type )

wp_mail_content_type:這是一個WordPress鉤子,用於設定電子郵件的內容型別。它允許您通過定義一個過濾器函式來更改預設內容型別,以適合您的需求。

過濾wp_mail()的內容型別。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
$content_type = apply_filters( 'wp_mail_content_type', $content_type );

常見問題

FAQs
檢視更多 >