bp_blogs_validate_blog_form( $blog_name = '',  $blog_title = '' )

Validate a blog creation submission.


Description Description

Essentially, a wrapper for wpmu_validate_blog_signup().


Return Return

(array) Contains the new site data and error messages.


Top ↑

Source Source

File: bp-blogs/bp-blogs-functions.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);
}

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Add the blog_name and blog_title parameters. The function has been moved into bp-blogs/bp-blogs-functions.php.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.