Email::ap_default_options()
Description #
Append default options
Source #
File: addons/email/email.php
public function ap_default_options() { $defaults = array( 'email_admin_emails' => get_option( 'admin_email' ), 'email_admin_new_question' => true, 'email_admin_new_answer' => true, 'email_admin_new_comment' => true, 'email_admin_edit_question' => true, 'email_admin_edit_answer' => true, 'email_admin_trash_question' => true, 'email_admin_trash_answer' => true, 'email_user_new_question' => true, 'email_user_new_answer' => true, 'email_user_select_answer' => true, 'email_user_new_comment' => true, 'email_user_edit_question' => true, 'email_user_edit_answer' => true, ); $defaults['trash_answer_email_subject'] = __( 'An answer is trashed by {user}', 'anspress-question-answer' ); $defaults['trash_answer_email_body'] = __( "Hello!\nAnswer on '{question_title}' is trashed by {user}.\n", 'anspress-question-answer' ); ap_add_default_options( $defaults ); }
Expand full source code Collapse full source code View on GitHub: addons/email/email.php:129
Add your comment