Email::register_email_template()
Description #
Register email templates form.
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 ; } |
Expand full source code Collapse full source code View on GitHub: addons/email/email.php:281
Add your comment