WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 3 months ago

#24511 new feature request

Backend function for retrieving post row actions.

Reported by: Nessworthy Owned by:
Milestone: Awaiting Review 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 (4)

comment:1 follow-up: helen11 months ago

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.

comment:2 in reply to: ↑ 1 Nessworthy11 months 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.

comment:3 sabreuse11 months ago

  • Cc sabreuse added

comment:4 nacin3 months ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added
Note: See TracTickets for help on using tickets.