Skip to content
Docs
Get RestroPress

Filter

rpress_email_heading

Updated
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#

ParameterTypeDescription
$headingstringThe 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), in RPRESS_Emails::get_heading()

See also#

Was this page helpful?