W3cubDocs

/WordPress

users_can_register_signup_filter()

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

Description

Return

(bool)

Source

File: wp-includes/ms-functions.php

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

Changelog

Version Description
MU (3.0.0) Introduced.

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