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
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 | 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.