A WordPress-centric search engine for devs and theme authors



users_can_register_signup_filter ›

Since3.0.0
Deprecatedn/a
users_can_register_signup_filter ( No parameters )
Returns:
  • (bool)
Defined at:
Codex:
Change Log:
  • MU

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



Source

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