bp_get_blog_signup_allowed()
Is blog signup allowed?
Description Description
Returns true if is_multisite() and blog creation is enabled at Network Admin > Settings.
Return Return
(bool) True if blog signup is allowed, otherwise false.
Source Source
File: bp-core/bp-core-template.php
function bp_get_blog_signup_allowed() { if ( ! is_multisite() ) { return false; } $status = bp_core_get_root_option( 'registration' ); if ( ( 'none' !== $status ) && ( 'user' !== $status ) ) { return true; } return false; }
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |