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 Comments


  1. That’s really going to come in handy for bbPress. :)

    Report


    1. 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!

      Report


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

    Report


  3. Pls add option to Bulk – Publish / Private posts.

    Report


    1. You can change post status in the existing Bulk Edit dialog. Are you just looking to save a couple of clicks?

      Report


      1. yes.
        this feature exists in Joomla also from ver 1.
        this is the only feature that I miss.

        Report


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

    Report


  5. Don’t you think hackers will get more access to admin ?

    Report


  6. 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. ;-)

    Report


  7. It can be really useful, this will bring a whole lot of opportunity for new features.

    Report

Comments are closed.