wp_mail_content_type filter-hookWP 2.3.0

Filters the wp_mail() content type.

Usage

add_filter( 'wp_mail_content_type', 'wp_kama_mail_content_type_filter' );

/**
 * Function for `wp_mail_content_type` filter-hook.
 * 
 * @param string $content_type Default wp_mail() content type.
 *
 * @return string
 */
function wp_kama_mail_content_type_filter( $content_type ){

	// filter...
	return $content_type;
}
$content_type(string)
Default wp_mail() content type.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_mail()
wp_mail_content_type
wp_staticize_emoji_for_email()
wp_mail_content_type
wp-includes/pluggable.php 478
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
wp-includes/formatting.php 5996
$content_type = apply_filters( 'wp_mail_content_type', $content_type );

Where the hook is used in WordPress

Usage not found.