Email::add_template_tag( string $tag, string $content )
Description #
Add template tags.
Parameters #
- $tagstring (Required) Template tag key.
- $contentstring (Required) Tag content.
Source #
File: addons/free/email/class-email.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', [ $this ] ); } }
Expand full source code Collapse full source code View on GitHub: addons/free/email/class-email.php:161
Add your comment