Bulk actions – is a part of WordPress admin interface, that allows you to select multiple elements like posts, terms, users and perform any action to all of them.
It is very handy because for example it allows you to remove let’s say hundreds of posts in just three clicks and saves you tons of time. Check the screenshot below to see how it works.
In this tutorial I am going to talk about how to remove default bulk actions and how to create a custom one. But first of all we will take a look at the hooks.
Not so many tutorials ago I published my tutorial about custom fields in quick edit. The current one is super-similar actually, but allows to add fields to Bulk actions – Edit.
Our goal here is to add a couple fields there (if you’re are looking for information about bulk actions, then it is a wrong tut for you, here is the right one).
That’s what we are going to create here:
In this tutorial I will show you how to add any custom fields to WordPress quick edit. As an example we are going to add a simple text field and a checkbox.
In this tutorial I am going to show you how to do two things at the same time:
- Add an admin column for WordPress featured images of any post type.
- Add a quick edit option for featured images.