Email::register_email_template()

Description #

Register email templates form.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/email/email.php

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
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;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment