bp_blogs_validate_blog_form()
Validate a blog creation submission.
Description
Essentially, a wrapper for wpmu_validate_blog_signup().
Return
(array) Contains the new site data and error messages.
Source
File: bp-blogs/bp-blogs-template.php
function bp_blogs_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);
}
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.