bp_get_blog_signup_allowed

Is blog signup allowed?.

Description

bp_get_blog_signup_allowed(); 

Returns true if is_multisite() and blog creation is enabled at Network Admin > Settings.


Usage

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

Defined (1)

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

/bp-core/bp-core-template.php  
  1. function bp_get_blog_signup_allowed() { 
  2.  
  3. if ( ! is_multisite() ) { 
  4. return false; 
  5.  
  6. $status = bp_core_get_root_option( 'registration' ); 
  7. if ( ( 'none' !== $status ) && ( 'user' !== $status ) ) { 
  8. return true; 
  9.  
  10. return false;