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



get_nonauthor_user_ids ›

Sincen/a
已弃用3.1.0
get_nonauthor_user_ids ( 没有参数 )
定义在:
文档:

Gets all users who are not authors.



源码

function get_nonauthor_user_ids() {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' );

	global $wpdb;

	if ( !is_multisite() )
		$level_key = $wpdb->get_blog_prefix() . 'user_level';
	else
		$level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels

	return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
}