WordPress 4.7 Will Allow Developers to Register Custom Bulk Actions in Admin List Tables

photo credit: -pdp- - cc
photo credit: -pdp-cc

WordPress 4.7 will allow for custom bulk actions in admin list tables, an exciting new feature for developers. List tables are found on various screens throughout the admin. Bulk actions are the dropdowns that let users perform actions such as activate or deactivate plugins in bulk, move multiple posts to the trash, and bulk delete media items.

The ability for developers to filter bulk actions was introduced in 3.1 but it didn’t offer much flexibility. Up until 4.7, it only allowed for the removal of items from default bulk actions. The upcoming release will make it possible for developers to register new bulk actions for any admin list table dropdown, including the Attachments list table.

image credit:
image credit: Eric Andrew Lewis

Eric Andrew Lewis posted the announcement on the make.wordpress/core blog along with a sample code walkthrough of the steps required for adding a new option to the dropdown, handling a bulk action form submission, and displaying notices to inform users of what happened. The announcement was met with a round of cheers from developers who are delighted to make use of the new ability to register their own bulk actions.

This small, yet important change resolves a six-year-old ticket and has the potential to impact many plugins. For example, the Custom Bulk Actions plugin has been rendered obsolete, as core now provides a better standard. There are many other plugins that register bulk actions through a similar method or another type of hack, but WordPress 4.7 will offer an easier, core-supported way to accomplish this.

11

11 responses to “WordPress 4.7 Will Allow Developers to Register Custom Bulk Actions in Admin List Tables”

    • It’s really going to come in handy for many plugins. Very good enhancement.

      I like the easy of use. Developers will love this cool feature!

  1. Will be really useful for membership sites when users could have part of admin functionality with custom bulk actions.

  2. That’s great news, been waiting for this feature for a long time and will definitely improve site administration.

  3. Not the best part so far!

    There are more beautiful changes to come like custom smilies, override shortcodes with own functionality, theme inheritance etc. And those are only the changes made in September. ;-)

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: