WP-Members



admin->emails ) ) { foreach( $wpmem->admin->emails as $email ) { $wpmem->admin->do_email_input( $email ); } } $arr = get_option( 'wpmembers_email_footer' ); ?>
  email@yourdomain.com
  John Smith


 
email['from'] != $_POST['wp_mail_from'] || $wpmem->email['from_name'] != $_POST['wp_mail_from_name'] ) { $wpmem->email['from'] = $_POST['wp_mail_from']; $wpmem->email['from_name'] = $_POST['wp_mail_from_name']; $wpmem_newsettings = get_option( 'wpmembers_settings' ); $wpmem_newsettings['email']['from'] = $_POST['wp_mail_from']; $wpmem_newsettings['email']['from_name'] = $_POST['wp_mail_from_name']; update_option( 'wpmembers_settings', $wpmem_newsettings ); } // Update the various emails being used. ( $wpmem->mod_reg == 0 ) ? $arr = array( 'wpmembers_email_newreg' ) : $arr = array( 'wpmembers_email_newmod', 'wpmembers_email_appmod' ); array_push( $arr, 'wpmembers_email_repass' ); array_push( $arr, 'wpmembers_email_getuser' ); ( $wpmem->notify == 1 ) ? array_push( $arr, 'wpmembers_email_notify' ) : false; array_push( $arr, 'wpmembers_email_footer' ); for ( $row = 0; $row < ( count( $arr ) - 1 ); $row++ ) { $arr2 = array( "subj" => $_POST[ $arr[ $row ] . '_subj' ], "body" => $_POST[ $arr[ $row ] . '_body' ], ); update_option( $arr[ $row ], $arr2, false ); $arr2 = ''; } // Updated the email footer. update_option( $arr[ $row ], $_POST[ $arr[ $row ] . '_body' ], false ); if ( ! empty ( $wpmem->admin->emails ) ) { foreach( $wpmem->admin->emails as $email ) { $wpmem->admin->email_update( $email ); } } return __( 'WP-Members emails were updated', 'wp-members' ); } // End of file.