On this page
validate_blog_form(): array
Validates the new site sign-up.
Return
array Contains the new site data and error messages.
See wpmu_validate_blog_signup() for details.
Source
File: wp-signup.php. View all references
function validate_blog_form() {
$user = '';
if ( is_user_logged_in() ) {
$user = wp_get_current_user();
}
return wpmu_validate_blog_signup( $_POST['blogname'], $_POST['blog_title'], $user );
}
Related
Uses
| Uses | Description |
|---|---|
| wpmu_validate_blog_signup() wp-includes/ms-functions.php | Processes new site registrations. |
| wp_get_current_user() wp-includes/pluggable.php | Retrieves the current user object. |
| is_user_logged_in() wp-includes/pluggable.php | Determines whether the current visitor is a logged in user. |
Used By
| Used By | Description |
|---|---|
| validate_another_blog_signup() wp-signup.php | Validates a new site sign-up for an existing user. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/validate_blog_form