Email::register_email_template()
Description #
Register email templates form.
Source #
File: addons/email/email.php
	public function register_email_template() {
		$form = array(
			'fields' => array(
				'subject' => array(
					'label' => __( 'Email subject', 'anspress-question-answer' ),
				),
				'body'    => array(
					'label'       => __( 'Email body', 'anspress-question-answer' ),
					'type'        => 'editor',
					'editor_args' => array(
						'quicktags' => true,
						'tinymce'   => true,
					),
				),
				'tags'    => array(
					'html' => '<label class="ap-form-label" for="form_email_template-allowed_tags">' . __( 'Allowed tags', 'anspress-question-answer' ) . '</label><div class="ap-email-allowed-tags">' . apply_filters( 'ap_email_form_allowed_tags', '' ) . '</div>',
				),
			),
		);
		return $form;
	}
Expand full source code Collapse full source code View on GitHub: addons/email/email.php:281
  Add your comment