validate_blog_form() WordPress Function
The validate_blog_form() function is used to validate the fields of a blog form. This function is called when a user submits a blog form. It checks the form for required fields and validates the data entered by the user. If the form is valid, the function returns true. Otherwise, it returns false.
validate_blog_form() #
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
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |