bp_core_validate_blog_signup

Validate blog URL and title provided at signup.

Description

(array) bp_core_validate_blog_signup( (string) $blog_url, (string) $blog_title ); 

Returns (array)

Parameters (2)

0. $blog_url (string)
Blog URL requested during registration.
1. $blog_title (string)
Blog title requested during registration.

Usage

  1. if ( !function_exists( 'bp_core_validate_blog_signup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-members/bp-members-functions.php'; 
  3.  
  4. // Blog URL requested during registration. 
  5. $blog_url = ''; 
  6.  
  7. // Blog title requested during registration. 
  8. $blog_title = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_core_validate_blog_signup($blog_url, $blog_title); 
  12.  

Defined (1)

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

/bp-members/bp-members-functions.php  
  1. function bp_core_validate_blog_signup( $blog_url, $blog_title ) { 
  2. if ( ! is_multisite() || ! function_exists( 'wpmu_validate_blog_signup' ) ) { 
  3. return false; 
  4.  
  5. /** 
  6. * Filters the validated blog url and title provided at signup. 
  7. * @since 1.2.2 
  8. * @param array $value Array with the new site data anderrormessages. 
  9. */ 
  10. return apply_filters( 'bp_core_validate_blog_signup', wpmu_validate_blog_signup( $blog_url, $blog_title ) );