Definition:
function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta = '') {}
Notify user of signup success.
This is the notification function used when site registration is enabled.
Parameters
- string $domain: The new blog domain.
- string $path: The new blog path.
- string $title: The site title.
- string $user: The user’s login name.
- string $user_email: The user’s email address.
- array $meta: By default, contains the requested privacy setting and lang_id.
- string $key: The activation key created in wpmu_signup_blog()
Defined filters
- wpmu_signup_blog_notification
apply_filters('wpmu_signup_blog_notification', $domain, $path, $title, $user, $user_email, $key, $meta)
Source code
function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta = '') {
global $current_site;
if ( !apply_filters('wpmu_signup_blog_notification', $domain, $path, $title, $user, $user_email, $key, $meta) )
return false;
// Send email with activation link.
if ( !is_subdomain_install() || $current_site->id != 1 )
$activate_url = network_site_url("wp-activate.php?key=$key");
else
$activate_url = "http://{$domain}{$path}wp-activate.php?key=$key"; // @todo use *_url() API
3393

February 12, 2011 


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