users_can_register_signup_filter()WP 3.0.0

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

No Hooks.

Return

true|false.

Usage

users_can_register_signup_filter();

Changelog

Since 3.0.0 Introduced.

users_can_register_signup_filter() code WP 6.1.1

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