Developer Mode '; //$developer_bar .= ' Enabled'; $developer_bar .= 'X'; $developer_bar .= ''; printf('%s',$developer_bar); } } add_action('wp_footer', 'wpda_developer_mode_display'); ## EMAIL FILTER function wpda_filter_wp_mail($args ) { if(get_option('wpda_email_template_header')){ $args['message'] = stripslashes_deep(get_option('wpda_email_template_header')).$args['message']; } if(get_option('wpda_email_template_footer')){ $args['message'] .= stripslashes_deep(get_option('wpda_email_template_footer')); } $blog_name = get_bloginfo( 'name' ); $args['message'] = str_replace('[blog_name]',$blog_name,$args['message']); if(is_string($args['headers'])){ $args['headers'] = explode("\n",$args['headers']); } $args['headers'][] = 'Content-Type: text/html; charset=UTF-8'; if(wpda_verify_ip() && get_option('wpda_email_developer_mode')) { $args['message'] .= "

To:$args[to]

".implode(';',(array)$args['headers'])."

"; $args['to'] = get_option('wpda_email_to'); if(get_option('wpda_email_header')) $args['headers'][] = esc_html(get_option('wpda_email_header')); if(get_option('wpda_email_cc')) $args['headers'][] = 'Cc:'.esc_html(get_option('wpda_email_cc')); if(get_option('wpda_email_bcc')) $args['headers'][] = 'Bcc:'.esc_html(get_option('wpda_email_bcc')); if(get_option('wpda_email_reply_to')) $args['headers'][] = 'Reply-To:'.esc_html(get_option('wpda_email_reply_to')); $args['subject'] = "[Developer mode] - ".$args['subject']; } $custom_mail = array( 'to' => $args['to'], 'subject' => $args['subject'], 'message' => $args['message'], 'headers' => $args['headers'], 'attachments' => $args['attachments'] ); return $custom_mail; } add_filter( 'wp_mail', 'wpda_filter_wp_mail',999 ); ##CUSTOM ADMIN LOGO function wpda_admin_login() { if( trim(get_option('wpda_logo_url'))){ echo ''; } } add_action( 'login_enqueue_scripts', 'wpda_admin_login' ); function wpda_login_url() { return home_url(); } add_filter( 'login_headerurl', 'wpda_login_url' ); function wpda_login_title() { return get_bloginfo( 'name' ); } add_filter( 'login_headertitle', 'wpda_login_title' ); if(get_option('wpda_cf7_message')){ include_once WPDA_PLUGIN_INC_DIR."/custom_validation.php"; } ## PASSWORD CHANGE EMAIL add_filter('password_change_email','wpda_change_password_mail_message', 10,3 ); function wpda_change_password_mail_message($pass_change_mail, $user, $userdata ) { var_dump($pass_change_mail, $user, $userdata);die; //$new_message_txt = __( '' ); $pass_change_mail[ 'message' ] = $new_message_txt; return $pass_change_mail; }