bp_get_blog_signup_allowed()

Is blog signup allowed?

Description

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

Return

(bool) True if blog signup is allowed, otherwise false.

Source

File: bp-core/bp-core-template.php

1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
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
BuddyPress 1.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.