Definition:
function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') {}
Notify user of signup success.
This is the notification function used when no new site has been requested.
Parameters
- string $user: The user’s login name.
- string $user_email: The user’s email address.
- array $meta: By default, an empty array.
- string $key: The activation key created in wpmu_signup_user()
Defined filters
- wpmu_signup_user_notification
apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta)
Source code
function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') {
if ( !apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta) )
return false;
// Send email with activation link.
$admin_email = get_site_option( 'admin_email' );
if ( $admin_email == '' )
$admin_email = 'support@' . $_SERVER['SERVER_NAME'];
$from_name = get_site_option( 'site_name' ) == '' ? 'WordPress' : esc_html( get_site_option( 'site_name' ) );
$message_headers = "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
3399

February 12, 2011 


No comments yet... Be the first to leave a reply!