Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $NewUserEmailAdminOptions = array(
- 'html' => 'text/HTML',
- 'fromaddress' => 'Enter your admin email here',
- 'from' => 'Enter the name you want your admin email sent from here. eg. Admin',
- 'subject' => 'Welcome to %blogname%',
- 'text' => 'Welcome %username% please find below your login details.<br /> I hope you enjoy our site.<br /> <strong>Username:</strong> %username%<br /> <strong>Password:</strong> %password%<br /> %loginurl%',
- 'admin' => 'yes',
- 'adminsubject' => '%blogname% - New User Registration',
- 'admintext' => 'There is a new user registered on your blog:<br /> <strong>Username:</strong> %username%<br /> <strong>Email:</strong> %useremail%'
- );
- // If old style options are already in the table, take their value and transform it to the new style
- foreach( $NewUserEmailAdminOptions as $key => $value ) {
- if( $existing = get_option( 'newuseremail' . $key ) ) {
- $NewUserEmailAdminOptions[$key] = $existing;
- delete_option( 'newuseremail' . $key );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement