Skip to content
Docs
Get RestroPress

Filter

rpress_email_show_footer_link

Updated
On this page

Filters whether the order history link is printed in the email footer.

Checked in the default email footer template. The default is the result of is_user_logged_in() at send time, so order emails only show the link when someone is logged in. Reservation emails switch it on while they are sent. Return true to always show the View Details link, or false to hide it.

Parameters#

ParameterTypeDescription
$valueboolWhether the link would be printed by default.

Return value#

bool. True to print the footer link.

Example#

function my_email_show_footer_link( $show ) {
	return true;
}
add_filter( 'rpress_email_show_footer_link', 'my_email_show_footer_link' );

Notes#

The link text is filtered separately through rpress_email_footer_text. The first argument is an expression.

Source#

Applied in:

  • templates/emails/footer-default.php (line 51)

See also#

Was this page helpful?