AnsPress_Email_Hooks::template_new_question( array $template )
Description #
Add default new question email template.
Parameters #
- $templatearray (Required) Template subject and body.
Source #
File: addons/free/email.php
public static function template_new_question( $template ) { $template['subject'] = __( '{asker} have posted a new question', 'anspress-question-answer' ); $body = ''; $body .= '<div class="ap-email-event">'; $body .= __( 'A new question is posted by', 'anspress-question-answer' ) . ' <b class="user-name">{asker}</b>'; $body .= '</div>'; $body .= '<div class="ap-email-body">'; $body .= '<h1 class="ap-email-title"><a href="{question_link}">{question_title}</a></h1>'; $body .= '<div class="ap-email-content">'; $body .= '{question_content}'; $body .= '</div>'; $body .= '</div>'; $template['body'] = $body; return $template; }
Expand full source code Collapse full source code View on GitHub: addons/free/email.php:774
Add your comment