Definition:
function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = '') {}
Record site signup information for future activation.
Parameters
- string $domain: The requested domain.
- string $path: The requested path.
- string $title: The requested site title.
- string $user: The user’s requested login name.
- string $user_email: The user’s email address.
- array $meta: By default, contains the requested privacy setting and lang_id.
Source code
function wpmu_signup_blog($domain, $path, $title, $user, $user_email, $meta = '') {
global $wpdb;
$key = substr( md5( time() . rand() . $domain ), 0, 16 );
$meta = serialize($meta);
$domain = $wpdb->escape($domain);
$path = $wpdb->escape($path);
$title = $wpdb->escape($title);
$wpdb->insert( $wpdb->signups, array(
'domain' => $domain,
'path' => $path,
'title' => $title,
'user_login' => $user,
'user_email' => $user_email,
'registered' => current_time('mysql', true),
'activation_key' => $key,
'meta' => $meta
) );
wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta);
}
3391

February 12, 2011 


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