[wp-hackers] Change post author
otto at ottodestruct.com
Fri Dec 28 17:08:50 UTC 2012
On Fri, Dec 28, 2012 at 10:59 AM, Kevinjohn Gallagher
<kevinjohngallagher at hotmail.com> wrote:
> I need a drop down to select the "author" of a post, and the standard metabox (authordiv) only lists admins.Is there a filter to add more users/roles to that list?
> Alternatively is there a plug-in that allows this?
No, the post_author_meta_box lists all eligible authors, not just
It calls this function:
'who' => 'authors',
'name' => 'post_author_override',
'selected' => empty($post->ID) ? $user_ID : $post->post_author,
'include_selected' => true
Eventually that "who" field makes its way down to WP_User_Query, which
interprets it as being all users with a usermeta field of "user_level"
that is != 0. Which is essentially all the users on the blog.
More information about the wp-hackers