Filter
rpress_sale_notification_template_tags_description
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#
| Parameter | Type | Description |
|---|---|---|
$tags | string | HTML 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), inrpress_get_sale_notification_template_tags()
See also#
Was this page helpful?
