bp_blogs_validate_blog_form

Validate a blog creation submission.

Description

(array) bp_blogs_validate_blog_form(); 

Essentially, a wrapper for .

Returns (array)

Contains the new site data and error messages.


Usage

  1. if ( !function_exists( 'bp_blogs_validate_blog_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_blogs_validate_blog_form(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-blogs/bp-blogs-template.php  
  1. function bp_blogs_validate_blog_form() { 
  2. $user = ''; 
  3. if ( is_user_logged_in() ) 
  4. $user = wp_get_current_user(); 
  5.  
  6. return wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title'], $user);