users_can_register_signup_filter()

Check whether users can self-register, based on Network settings.

Return

(bool)

Source

File: wp-includes/ms-functions.php

function users_can_register_signup_filter() {
	$registration = get_site_option( 'registration' );
	return ( 'all' === $registration || 'user' === $registration );
}

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/users_can_register_signup_filter