bp_blog_signup_enabled()

Checks whether blog creation is enabled.

Description

Returns true when blog creation is enabled for logged-in users only, or when it’s enabled for new registrations.

Return

(bool) True if blog registration is enabled.

Source

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

function bp_blog_signup_enabled() {
	$bp = buddypress();

	$active_signup = isset( $bp->site_options['registration'] )
		? $bp->site_options['registration']
		: 'all';

	/**
	 * Filters whether or not blog creation is enabled.
	 *
	 * Return "all", "none", "blog" or "user".
	 *
	 * @since BuddyPress 1.0.0
	 *
	 * @param string $active_signup Value of the registration site option creation status.
	 */
	$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );

	if ( 'none' == $active_signup || 'user' == $active_signup )
		return false;

	return true;
}

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.