Opened 12 years ago
Closed 11 years ago
#30341 closed enhancement (fixed)
Additional hook for list table navigation area
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | ui, administration | Cc: |
Description
The extra_tablenav() function in class-wp-posts-list-table.php provides a hook for adding extra filtering options (restrict_manage_posts), but there's no way to add extra markup (links, buttons, additional help text, etc.) after the 'Filter' button. I propose adding an additional hook to allow additional markup to be added here.
Adding a hook here may only have fringe use cases, but I don't see a reason not to include it as it won't affect any existing functionality and will make the post and page list tables just a little bit more extensible.
Attachments (2)
Change History (11)
#2
@
12 years ago
Patch includes hook named manage_posts_extra_tablenav with the $which variable as the only parameter. Happy to change the name of the hook if something else would be more in line with WP naming conventions.
#5
@
11 years ago
It would be great to generalize this action.
Maybe we could add a filter/action to the class WP_List_Table to allow manipulating/extending the extra_tablenav in all tables.
something like:"manage_{$this->screen->id}_extra_tablenav"
#6
@
11 years ago
- Milestone changed from Awaiting Review to 4.4
- Owner set to DrewAPicture
- Status changed from new to reviewing
Adding hook with $which as the only argument