WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 5 months 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)

#1 follow-up: @helen
3 years 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.

#2 in reply to: ↑ 1 @Nessworthy
3 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.

#3 @sabreuse
3 years ago

  • Cc sabreuse added

#4 @nacin
2 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses administration added

#5 @wonderboymusic
5 months ago

  • Milestone changed from Awaiting Review to 4.3
  • Resolution set to fixed
  • Status changed from new to closed

You can now accomplish this with the 'list_table_primary_column' filter

Note: See TracTickets for help on using tickets.