signup_blog_init filter-hookWP 3.0.0

Filters the default site creation variables for the site sign-up form.


add_filter( 'signup_blog_init', 'wp_kama_signup_blog_init_filter' );

 * Function for `signup_blog_init` filter-hook.
 * @param array $signup_blog_defaults An array of default site creation variables.
 * @return array
function wp_kama_signup_blog_init_filter( $signup_blog_defaults ){

	// filter...
	return $signup_blog_defaults;

An array of default site creation variables.

  • user_name(string)
    The user username.

  • user_email(string)
    The user email address.

  • blogname(string)
    The blogname.

  • blog_title(string)
    The title of the site.

  • errors(WP_Error)
    A WP_Error object with possible errors relevant to new site creation variables.


Since 3.0.0 Introduced.

Where the hook is called

wp-signup.php 756
$filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults );

Where the hook is used in WordPress

Usage not found.