Make WordPress Core

Opened 8 months ago

#41893 new enhancement

Add URL filter in posts list table get_edit_link()

Reported by: GunGeekATX Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Administration Keywords:
Focuses: Cc:


In get_edit_link() in the WP_Posts_List_Table class, the URL to edit.php is hard-coded and is not filterable. I'm currently working on a project that has complex filtering and the client wants to maintain the filters as they click through to different statuses.

Currently, the only way to update just the URL to edit.php is to use the "views_{$this->screen->id}" filter, use regex to find the URL in the markup, then update the URL in the markup as-needed. The proposed wp_posts_list_table_edit_url filter would allow filtering of the generated URL separate from the markup.

Attachments (1)

ticket-41893.patch (682 bytes) - added by GunGeekATX 8 months ago.

Download all attachments as: .zip

Change History (1)

Note: See TracTickets for help on using tickets.