Home » How to Add a Posts Screen Users Filter in the WordPress Admin (edit.php)

How to Add a Posts Screen Users Filter in the WordPress Admin (edit.php)

Add Users Filter on Admin Posts Screen in WordPress Admin

This tutorial will teach you how to add a posts screen users filter in the WordPress Admin. This will allow you to add a dropdown list of users/authors/etc. (grouped by role) to the filter section at the top of the posts screen in the admin where all your posts are listed as seen in the image above.

How to Add a Posts Screen Users Filter in the WordPress Admin

Add this to functions.php:

That’s about it! Now if you wanted to get fancy you could also add an autocomplete as well. Perhaps if you comment in the comments below asking nicely for a revision to this post to show how to properly add something like Select2 or another autocomplete library I would be more inclined to do it 😉

As always, please let me know in the comments below if this worked for you, didn’t work for you, or anything else you want to let me know about this post!

Leave a Reply

Your email address will not be published. Required fields are marked *