Filter
rpress_email_heading
On this page
Filters the heading text of a RestroPress email.
Applied in RPRESS_Emails::get_heading(). The heading is a property set on the RPRESS()->emails object before sending and is cleared after each send. The default header template prints it as the main heading of the email.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$heading | string | The heading text. |
Return value#
string. The heading text.
Example#
function my_email_heading( $heading ) {
return strtoupper( $heading );
}
add_filter( 'rpress_email_heading', 'my_email_heading' );
Source#
Applied in:
includes/emails/class-rpress-emails.php(line 231), inRPRESS_Emails::get_heading()
See also#
Was this page helpful?
