Email::template_new_comment( array $template )
Description #
Add default selected answer email template.
Parameters #
- $templatearray (Required) Template subject and body.
Source #
File: addons/email/email.php
public function template_new_comment( $template ) { $template['subject'] = __( 'New comment by {commenter}', 'anspress-question-answer' ); $body = ''; $body .= '<div class="ap-email-event">'; $body .= __( 'A new comment posted by', 'anspress-question-answer' ) . ' <b class="user-name">{commenter}</b>'; $body .= '</div>'; $body .= '<div class="ap-email-body">'; $body .= '<h1 class="ap-email-title"><a href="{comment_link}">{question_title}</a></h1>'; $body .= '<div class="ap-email-content">'; $body .= '{comment_content}'; $body .= '</div>'; $body .= '</div>'; $template['body'] = $body; return $template; }
Expand full source code Collapse full source code View on GitHub: addons/email/email.php:943
Add your comment