Para agregar un filtro de autor en la página de lista de artículos disponible en WordPress, simplemente añade el siguiente código al archivo functions.php:
Nota: He dejado el comentario en la instrucción condicional referente a los tipos de publicaciones, podría ser útil 😊
function restrict_manage_authors() {
/*if (isset($_GET['post_type']) && post_type_exists($_GET['post_type']) && in_array(strtolower($_GET['post_type']), array('your_custom_post_types', 'here'))) {
*/wp_dropdown_users(array(
'show_option_all' => 'Show all Authors',
'show_option_none' => false,
'name' => 'author',
'selected' => !empty($_GET['author']) ? $_GET['author'] : 0,
'include_selected' => false
));
/*}*/
}
add_action('restrict_manage_posts', 'restrict_manage_authors');