Advertisement
Guest User

Untitled

a guest
May 6th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. $NewUserEmailAdminOptions = array(
  2.                 'html' => 'text/HTML',
  3.                 'fromaddress' => 'Enter your admin email here',
  4.                 'from' => 'Enter the name you want your admin email sent from here. eg. Admin',
  5.                 'subject' => 'Welcome to %blogname%',
  6.                 '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%',
  7.                 'admin' => 'yes',
  8.                 'adminsubject' => '%blogname% - New User Registration',
  9.                 'admintext' => 'There is a new user registered on your blog:<br /> <strong>Username:</strong> %username%<br /> <strong>Email:</strong> %useremail%'
  10.             );
  11.             // If old style options are already in the table, take their value and transform it to the new style
  12.             foreach( $NewUserEmailAdminOptions as $key => $value ) {
  13.                 if( $existing = get_option( 'newuseremail' . $key ) ) {
  14.                     $NewUserEmailAdminOptions[$key] = $existing;
  15.                     delete_option( 'newuseremail' . $key );
  16.                 }
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement