wpseek.com
WordPress开发者和主题制作者的搜索引擎
get_editable_authors is deprecated since version 3.1.0!
Alternative: get_users()
Alternative: get_users()
get_editable_authors › WordPress Function
Sincen/a
已弃用3.1.0
› get_editable_authors ( $user_id )
参数: |
|
返回: |
|
定义在: |
|
文档: |
Gets author users who can edit posts.
Related Functions: get_editable_roles, get_the_author, get_the_author_msn, get_editable_user_ids, get_the_author_id
源码
function get_editable_authors( $user_id ) { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; $editable = get_editable_user_ids( $user_id ); if ( !$editable ) { return false; } else { $editable = join(',', $editable); $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" ); } return apply_filters('get_editable_authors', $authors); }