wpmu_validate_blog_signup
Filter HookDescription
Filters site details and error messages following registration. }Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 784 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$result
|
{ Array of domain, path, site name, site title, user and error messages. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_validate_blog_signup
add_filter('wpmu_validate_blog_signup', 'my_custom_filter', 10, 1);
function my_custom_filter($result) {
// Your custom filtering logic here
return $result;
}
Source Code Context
wp-includes/ms-functions.php:784
- How this hook is used in WordPress core
<?php
779 * @type string $blog_title Site title.
780 * @type string|WP_User $user By default, an empty string. A user object if provided.
781 * @type WP_Error $errors WP_Error containing any errors found.
782 * }
783 */
784 return apply_filters( 'wpmu_validate_blog_signup', $result );
785 }
786
787 /**
788 * Records site signup information for future activation.
789 *
PHP Documentation
<?php
/**
* Filters site details and error messages following registration.
*
* @since MU (3.0.0)
*
* @param array $result {
* Array of domain, path, site name, site title, user and error messages.
*
* @type string $domain Domain for the site.
* @type string $path Path for the site. Used in subdirectory installations.
* @type string $blogname The unique site name (slug).
* @type string $blog_title Site title.
* @type string|WP_User $user By default, an empty string. A user object if provided.
* @type WP_Error $errors WP_Error containing any errors found.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.