signup_another_blog_init
Filter HookDescription
Filters the default site sign-up variables. }Hook Information
File Location |
wp-signup.php
View on GitHub
|
Hook Type | Filter |
Line Number | 365 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$signup_defaults
|
{ An array of default site sign-up variables. |
Usage Examples
Basic Usage
<?php
// Hook into signup_another_blog_init
add_filter('signup_another_blog_init', 'my_custom_filter', 10, 1);
function my_custom_filter($signup_defaults) {
// Your custom filtering logic here
return $signup_defaults;
}
Source Code Context
wp-signup.php:365
- How this hook is used in WordPress core
<?php
360 * @type string $blogname The site blogname.
361 * @type string $blog_title The site title.
362 * @type WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
363 * }
364 */
365 $filtered_results = apply_filters( 'signup_another_blog_init', $signup_defaults );
366
367 $blogname = $filtered_results['blogname'];
368 $blog_title = $filtered_results['blog_title'];
369 $errors = $filtered_results['errors'];
370
PHP Documentation
<?php
/**
* Filters the default site sign-up variables.
*
* @since 3.0.0
*
* @param array $signup_defaults {
* An array of default site sign-up variables.
*
* @type string $blogname The site blogname.
* @type string $blog_title The site title.
* @type WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-signup.php
Related Hooks
Related hooks will be displayed here in future updates.