Helper::add_template_tag( string $tag, string $content )
Description #
Add template tags.
Parameters #
- $tagstring (Required) Template tag key.
- $contentstring (Required) Tag content.
Source #
File: addons/email/class-helper.php
public function add_template_tag( $tag, $content ) {
$tag = '{' . sanitize_key( $tag ) . '}';
if ( ! isset( $this->template_tags[ $tag ] ) ) {
$this->template_tags[ $tag ] = $content;
/**
* Action triggered after adding email template tag.
*
* @since 4.1.0
*/
do_action_ref_array( 'ap_adding_email_tag', array( $this ) );
}
}
Expand full source code Collapse full source code View on GitHub: addons/email/class-helper.php:162
Add your comment