signup_blog_init
Filter HookDescription
Filters the default site creation variables for the site sign-up form. }Hook Information
File Location |
wp-signup.php
View on GitHub
|
Hook Type | Filter |
Line Number | 763 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$signup_blog_defaults
|
{ An array of default site creation variables. |
Usage Examples
Basic Usage
<?php
// Hook into signup_blog_init
add_filter('signup_blog_init', 'my_custom_filter', 10, 1);
function my_custom_filter($signup_blog_defaults) {
// Your custom filtering logic here
return $signup_blog_defaults;
}
Source Code Context
wp-signup.php:763
- How this hook is used in WordPress core
<?php
758 * @type string $blogname The blogname.
759 * @type string $blog_title The title of the site.
760 * @type WP_Error $errors A WP_Error object with possible errors relevant to new site creation variables.
761 * }
762 */
763 $filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults );
764
765 $user_name = $filtered_results['user_name'];
766 $user_email = $filtered_results['user_email'];
767 $blogname = $filtered_results['blogname'];
768 $blog_title = $filtered_results['blog_title'];
PHP Documentation
<?php
/**
* Filters the default site creation variables for the site sign-up form.
*
* @since 3.0.0
*
* @param array $signup_blog_defaults {
* An array of default site creation variables.
*
* @type string $user_name The user username.
* @type string $user_email The user email address.
* @type string $blogname The blogname.
* @type string $blog_title The title of the site.
* @type WP_Error $errors A WP_Error object with possible errors relevant to new site creation variables.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-signup.php
Related Hooks
Related hooks will be displayed here in future updates.