AnsPress_Email_Hooks::ap_default_options()
Description #
Append default options
Source #
File: addons/free/email.php
public static 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/free/email.php:112
Add your comment