WordPress开发者和主题制作者的搜索引擎



users_can_register_signup_filter ›

Since3.0.0
已弃用n/a
users_can_register_signup_filter ( 没有参数 )
返回:
  • (bool)
定义在:
文档:
Change Log:
  • MU

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



源码

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