Opened 11 years ago
Closed 9 years ago
#24511 closed feature request (fixed)
Backend function for retrieving post row actions.
Reported by: | Nessworthy | Owned by: | |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | administration | Cc: |
Description
For the cases where post titles are not supported for custom post types, but the user may want the quick action links to exist on their edit.php page table rows on hover.
All it would take would be to move the current code into a callable function and would probably only need to accept a post ID. Could then be called using something like get_post_row_actions($post_id)
.
It would return the string of links seen normally below the title on hover.
Change History (5)
#2
in reply to:
↑ 1
@
11 years ago
Replying to helen:
I don't know how this isn't a ticket already. Yes please. Although probably not moving the code so much as a public helper for
WP_List_Table::row_actions()
or some such.
Agreed, I didn't give it too much thought about implementation on ticket creation. Moving into Wp_List_Table
would be better choice of the two. It also potentially allows developers the choice to set $always_visible
to true/false for Wp_List_Table::row_actions()
when they want to use the in-built table layout.
I don't know how this isn't a ticket already. Yes please. Although probably not moving the code so much as a public helper for
WP_List_Table::row_actions()
or some such.