wpmu_validate_blog_signup filter-hookWP 3.0.0

Filters site details and error messages following registration.

Usage

add_filter( 'wpmu_validate_blog_signup', 'wp_kama_wpmu_validate_blog_signup_filter' );

/**
 * Function for `wpmu_validate_blog_signup` filter-hook.
 * 
 * @param array $result Array of domain, path, blog name, blog title, user and error messages.
 *
 * @return array
 */
function wp_kama_wpmu_validate_blog_signup_filter( $result ){

	// filter...
	return $result;
}
$result(array)

Array of domain, path, blog name, blog title, user and error messages.

  • domain(string)
    Domain for the site.

  • path(string)
    Path for the site. Used in subdirectory installations.

  • blogname(string)
    The unique site name (slug).

  • blog_title(string)
    Blog title.

  • user(string|WP_User)
    By default, an empty string. A user object if provided.

  • errors(WP_Error)
    WP_Error containing any errors found.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wpmu_validate_blog_signup()
wpmu_validate_blog_signup
wp-includes/ms-functions.php 763
return apply_filters( 'wpmu_validate_blog_signup', $result );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 40
add_filter( 'wpmu_validate_blog_signup', 'signup_nonce_check' );