Skip to content

Instantly share code, notes, and snippets.

@marcelo2605
marcelo2605 / gist:b195243976cb9c7f3f53
Last active September 25, 2015 17:13 — forked from LinzardMac/gist:4b4bcbef09d72b777619
[WordPress] Override author drop down to include all users from all roles/ caps in post creation screens
/**
* override output of author drop down to include ALL user roles
*/
add_filter('wp_dropdown_users', 'include_all_users');
function include_all_users($output)
{
//set the $post global for checking user against author
global $post;
$users = get_users();