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.


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.