Make WordPress Core

Opened 13 years ago

Closed 11 years ago

#26122 closed enhancement (wontfix)

Request for 2 new Bulk Actions hooks

Reported by: foomagoo Owned by: DrewAPicture
Priority: normal Milestone:
Component: Administration Version: 3.7
Severity: normal Keywords: has-patch dev-feedback
Cc: Focuses:

Description (last modified by SergeyBiryukov)

I need 2 hooks added to the core in order to allow me to edit the bulk action dropdown in the wp_list_table class. Specifically for the plugins page. My plugin uses ajax right now to manipulate those items but a core hook would be better. I've attached 2 patch files with the hooks I would like added. The patches are for wp-admin/includes/class-wp-list-table.php and wp-admin/includes/class-wp-plugins-list-table.php

Attachments (2)

class-wp-list-table.diff (395 bytes ) - added by foomagoo 13 years ago.
Patch file for wp-admin/includes/class-wp-list-table.php
class-wp-plugins-list-table.diff (379 bytes ) - added by foomagoo 13 years ago.
Patch file for wp-admin/includes/class-wp-plugins-list-table.php

Download all attachments as: .zip

Change History (14)

@foomagoo
13 years ago

Patch file for wp-admin/includes/class-wp-list-table.php

@foomagoo
13 years ago

Patch file for wp-admin/includes/class-wp-plugins-list-table.php

#1 @foomagoo
13 years ago

#26121 was marked as a duplicate.

#2 @SergeyBiryukov
13 years ago

  • Component GeneralAdministration
  • Description modified (diff)
  • Keywords has-patch added

#3 @johnbillion
13 years ago

Of note is the odd filter in WP_List_Table::bulk_actions().

Related: #16031, #12732, #18127.

#4 @foomagoo
13 years ago

That hook doesn't allow you to add to the drop down list. Only remove from it. I need to add options to the bulk actions drop down. My plugin currently uses jQuery to do it but that can get broken pretty easily.

Last edited 13 years ago by foomagoo (previous) (diff)

#5 @SergeyBiryukov
13 years ago

Sounds like a duplicate of #16031.

#6 @jeremyfelt
13 years ago

It appears that the request for after_bulk_actions_dropdown is not covered by #16301 entirely. This would fire after the display of actions in the select menu.

The filter request on bulk actions is a duplicate of #16301. comment:25 on that ticket explains some of the decision to restrict to remove only at the time. I would recommend adding comments on that ticket related to the bulk actions filter.

It's also worth noting that there are currently no actions in class-wp-list-table.php. These have been implemented more in the extensions of that class.

#7 @SergeyBiryukov
13 years ago

  • Version trunk3.7

#8 @DrewAPicture
13 years ago

  • Summary Request for 2 new hooksRequest for 2 new Bulk Actions hooks

#9 @chriscct7
11 years ago

  • Keywords dev-feedback added
  • Milestone Awaiting Review4.4

The patch itself looks fine, its 1 line.

At some point there simply needs to be a decision about whether new actions should be added to the parent, or whether actions should be done in the extensions that people make of it.

#10 @wonderboymusic
11 years ago

  • Owner set to DrewAPicture
  • Status newassigned

#11 @DrewAPicture
11 years ago

  • Status assignedaccepted

#12 @DrewAPicture
11 years ago

  • Milestone 4.4
  • Resolutionwontfix
  • Status acceptedclosed

There isn't really a fully-formed request outlined in this ticket. If the overall intent is to add bulk actions to existing core list tables, let's keep that discussion over in #16031.

Closing as wontfix.

Note: See TracTickets for help on using tickets.