Skip to content
Docs
Get RestroPress

Filter

rpress_sale_notification_template_tags_description

Updated
On this page

Filters the template tag help text of the deprecated sale notification tags function.

Applied in the deprecated rpress_get_sale_notification_template_tags(), which builds an HTML string describing the tags available in the sale notification email. It is only reached by legacy code that still calls the function.

Parameters#

ParameterTypeDescription
$tagsstringHTML string listing the available notification tags and their descriptions.

Return value#

string. The help text.

Example#

function my_sale_tags_description( $tags ) {
	return $tags . '<br/>{my_tag} - ' . esc_html__( 'My custom tag', 'my-plugin' );
}
add_filter( 'rpress_sale_notification_template_tags_description', 'my_sale_tags_description' );

Notes#

The enclosing function is deprecated; see rpress_get_sale_notification_template_tags in the deprecated functions file.

Source#

Applied in:

  • includes/deprecated-functions.php (line 250), in rpress_get_sale_notification_template_tags()

See also#

Was this page helpful?