wpmu_validate_blog_signup
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, site name, site 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, site name, site 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)
Site 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
wp-includes/ms-functions.php 768
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' );