Filter
rpress_purchase_receipt_template_tags_description
On this page
Filters the template tag help text of the deprecated purchase receipt tags function.
Applied in the deprecated rpress_get_purchase_receipt_template_tags(), which builds an HTML string describing the tags available in the purchase receipt email. Current tags are registered with rpress_add_email_tag() and listed by the email tags API instead.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$tags | string | HTML string listing the available receipt tags and their descriptions. |
Return value#
string. The help text.
Example#
function my_receipt_tags_description( $tags ) {
return $tags . '<br/>{my_tag} - ' . esc_html__( 'My custom tag', 'my-plugin' );
}
add_filter( 'rpress_purchase_receipt_template_tags_description', 'my_receipt_tags_description' );
Notes#
Deprecated since 1.9. No replacement is provided.
Source#
Applied in:
includes/deprecated-functions.php(line 222), inrpress_get_purchase_receipt_template_tags()
See also#
Was this page helpful?
