Email::template_trash_question( array $template )

Description #

Add default trash question email template.

Parameters #

  • $template
    array (Required) Template subject and body.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/email/email.php

1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
public function template_trash_question( $template ) {
    $template['subject'] = __( 'A question is trashed by {user}', 'anspress-question-answer' );
    $body                = '';
    $body               .= '<div class="ap-email-event">';
    $body               .= __( 'A question is trashed by', 'anspress-question-answer' ) . ' <b class="user-name">{user}</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>';
    $template['body']    = $body;
 
    return $template;
}

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