Filter
rpress_email_default_content_type
On this page
Filters the default content type for HTML emails.
Applied in RPRESS_Emails::get_content_type() when no content type has been set yet and the email is in HTML mode. The default is text/html. Plain text mode, used when the email template is none, sets text/plain directly and does not run this filter.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string | The default content type. |
$emails | RPRESS_Emails | The RPRESS_Emails instance sending the email. |
Return value#
string. The content type to use.
Example#
function my_default_content_type( $content_type, $emails ) {
return 'text/html';
}
add_filter( 'rpress_email_default_content_type', 'my_default_content_type', 10, 2 );
Source#
Applied in:
includes/emails/class-rpress-emails.php(line 159), inRPRESS_Emails::get_content_type()
See also#
Was this page helpful?
