signup_blog_init
Filters the default site creation variables for the site sign-up form.
Usage
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; }
- $signup_blog_defaults(array)
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.
-
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
signup_blog_init
wp-signup.php 756
$filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults );