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 )
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)
Change History (14)
#2
@
13 years ago
- Component General → Administration
- Description modified (diff)
- Keywords has-patch added
#3
@
13 years ago
Of note is the odd filter in WP_List_Table::bulk_actions().
#4
@
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.
#6
@
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.
#9
@
11 years ago
- Keywords dev-feedback added
- Milestone Awaiting Review → 4.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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch file for wp-admin/includes/class-wp-list-table.php