A WordPress-centric search engine for devs and theme authors



validate_blog_form ›

Since3.0.0
Deprecatedn/a
validate_blog_form ( No parameters )
Returns:
  • (array) Contains the new site data and error messages.
Defined at:
Codex:
Change Log:
  • MU

Validate the new site signup



Source

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);
}