Home
  • Contact
  • Live News
  • Documentation API
  • Function, Filter & Action index
  • Our WordPress plugins
    • Debug Bar Extender
    • WP-Cron-Control
  • Posts

A HitchHackers guide through WordPress

the source for WordPress News, Tips and Help
  • Home
  • Q&A
    • Ask a question
  • Live News
  • Docs
  • Documentation API
  • Contact

wpmu_signup_user_notification

February 12, 2011 by Thorsten 0 Comments

  • /wp-includes/ms-functions.php(line 783)
  • PHPdoc
  • WordPress Codex

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

/wp-includes/ms-functions.php, Documentation, Files, Filters, Filters by letter w, Functions, Functions by letter w
codex, id767b0e0ccfe14c784c4ccb9efd050eb3, wpmu_signup_user_notification

wpmu_signup_user

February 12, 2011 by Thorsten 1 Comment

  • /wp-includes/ms-functions.php(line 675)
  • PHPdoc
  • WordPress Codex

Definition:
function wpmu_signup_user($user, $user_email, $meta = '') {}

Record user signup information for future activation.
This function is used when user registration is open but new site registration is not.

Parameters

  • string $user: The user’s requested login name.
  • string $user_email: The user’s email address.
  • array $meta: By default, this is an empty array.

Source code

function wpmu_signup_user($user, $user_email, $meta = '') {

	global $wpdb;



	// Format data

	$user = preg_replace( '/\s+/', '', sanitize_user( $user, true ) );

	$user_email = sanitize_email( $user_email );

	$key = substr( md5( time() . rand() . $user_email ), 0, 16 );

	$meta = serialize($meta);



	$wpdb->insert( $wpdb->signups, array(

		'domain' => '',

		'path' => '',

		'title' => '',

		'user_login' => $user,

		'user_email' => $user_email,

		'registered' => current_time('mysql', true),

		'activation_key' => $key,

		'meta' => $meta

	) );



	wpmu_signup_user_notification($user, $user_email, $key, $meta);

}

3397

/wp-includes/ms-functions.php, Documentation, Files, Functions, Functions by letter w
codex, idd1ce29ec353ed750b9c646ab16d42375, wpmu_signup_user

wpmu_signup_stylesheet

February 12, 2011 by Thorsten 0 Comments

  • /wp-signup.php(line 33)
  • PHPdoc

Definition:
function wpmu_signup_stylesheet() {}

Source code

function wpmu_signup_stylesheet() {

	?>

	<style type="text/css">

		.mu_register { width: 90%; margin:0 auto; }

		.mu_register form { margin-top: 2em; }

		.mu_register .error { font-weight:700; padding:10px; color:#333333; background:#FFEBE8; border:1px solid #CC0000; }

		.mu_register input[type="submit"],

			.mu_register #blog_title,

			.mu_register #user_email,

			.mu_register #blogname,

			.mu_register #user_name { width:100%; font-size: 24px; margin:5px 0; }

		.mu_register .prefix_address,

			.mu_register .suffix_address {font-size: 18px;display:inline; }

		.mu_register label { font-weight:700; font-size:15px; display:block; margin:10px 0; }

		.mu_register label.checkbox { display:inline; }

		.mu_register .mu_alert { font-weight:700; padding:10px; color:#333333; background:#ffffe0; border:1px solid #e6db55; }

	</style>

	<?php

}

3395

/wp-signup.php, Documentation, Files, Functions, Functions by letter w
id2c7c36a50b45b67ff322f76b07500cd5, wpmu_signup_stylesheet

wpmu_signup_blog_notification

February 12, 2011 by Thorsten 0 Comments

  • /wp-includes/ms-functions.php(line 722)
  • PHPdoc
  • WordPress Codex

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

/wp-includes/ms-functions.php, Documentation, Files, Filters, Filters by letter w, Functions, Functions by letter w
codex, id6c8d300b7e7d010757c24f0b6f7b99a5, wpmu_signup_blog_notification

wpmu_signup_blog

February 12, 2011 by Thorsten 0 Comments

  • /wp-includes/ms-functions.php(line 639)
  • PHPdoc
  • WordPress Codex

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

/wp-includes/ms-functions.php, Documentation, Files, Functions, Functions by letter w
codex, ide1d992adc5854c018c7030511429b580, wpmu_signup_blog
Newer Entries
Older Entries

Ouch, we don’t have this here!

It seems that we do not have anything about this topic here, but you might want to do one of the following. If you were searching for a php function head over to the php manual and use one of their entry points
  • PHP function quick reference
  • PHP Manual
If you were searching for a WordPress related topic and did not find it here try one of the following options.
  • Use the search form in the navigation bar above
  • Use the WordPress search
If nothing like this helps try using Google or an other search engine
  • Google
  • Bing

Golden Q&A rules

Search first

Be sure that you first search in Google, the WordPress forums, Codex or this site ( using the form in the menu ). Sharing your previous results helps narrowing down the problem if you also tell us what you found and why it didn’t serve your needs.

Be specific

Give as much details about your problem as possible. Make sure to include examples, links and context related to your problem.

Be WordPress related

This site focuses on WordPress and related topics. Please make sure that your question is related to WordPress code, functionality or other related topics.

Be nice

Please keep in mind that this is a voluntary service. Answers might not always be correct or what you expect. Please be nice and let us know if any inappropriate answers come to your attention.

Buy us a coffee.

Did you find something that helps you save time or money on this site and just want to say "Thanks". Feel free to buy us a coffee using the button below.

  • Latest
  • Popular
  • Comments
  • Speed up WordPress when you have a lot of terms February 15, 2014
  • WordPress Importer with remote lookup for assets. February 15, 2014
  • It’s been a while! Sorry for neglecting you! September 4, 2013
  • Cache posts in category/tag/taxonomy for better performing content blocks May 10, 2012
  • Lost in time(zones)? http://localtime.at can help May 5, 2012
  • WordPress Syntax mode for Panic Coda February 18, 2011
  • wp_save_image February 12, 2011
  • wp_tiny_mce February 12, 2011
  • Initialize WordPress from a PHP CLI script July 22, 2011
  • Caching WordPress navigation menus – wp_nav_menu() wrapper October 7, 2011
  • Thorsten's avatar Thorsten: Till, that's extra awesome. Especially as I alread...
  • Till Krüss's avatar Till: I just released a WordPress syntax mode for Coda 2...
  • Gift Ideas for Any WordPress Developer… hint hint... | Capstone Creations in Louisville, KY: […] this an all-in-one tool that will improv...
  • madtownlems's avatar madtownlems: Is there any good writeup on how to effectively an...
  • Wordcamp 2013 « David Lomuscio: [...] https://hitchhackerguide.com/2011/02/12/wp_ha...

Categories

RSS WP-Cron.com Links

  • An error has occurred; the feed is probably down. Try again later.

RSS My random code snippets

  • An error has occurred; the feed is probably down. Try again later.

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2,005 other subscribers

Feed subscriptions

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Latest tweets

Tweets by hitchhacker

Recent Posts

  • Speed up WordPress when you have a lot of terms
  • WordPress Importer with remote lookup for assets.
  • It’s been a while! Sorry for neglecting you!
  • Cache posts in category/tag/taxonomy for better performing content blocks
  • Lost in time(zones)? http://localtime.at can help

A HitchHackers guide through WordPress.

Create a free website or blog at WordPress.com.

  • Subscribe Subscribed
    • A HitchHackers guide through WordPress
    • Join 2,005 other subscribers
    • Already have a WordPress.com account? Log in now.
    • A HitchHackers guide through WordPress
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar