[wp-trac] [WordPress Trac] #35099: New filter: `edit_link`
WordPress Trac
noreply at wordpress.org
Tue Dec 15 12:38:26 UTC 2015
#35099: New filter: `edit_link`
-------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> In ticket [https://core.trac.wordpress.org/ticket/35097] I wrote about
> filter edit page title. @SergeyBiryukov found a solution. But I want
> filter url in "All, Published, Trash" and others. I want add taxonomy
> info and see show posts from taxonomy in trash.
>
> {{{#!php
> add_filter('edit_link', 'wp_edit_link_filter');
>
> function wp_edit_link_filter($url){
> return add_query_arg(array('taonomy'=>'slug'), $url);
> }
> }}}
New description:
In ticket #35097 I wrote about filter edit page title. @SergeyBiryukov
found a solution. But I want filter url in "All, Published, Trash" and
others. I want add taxonomy info and see show posts from taxonomy in
trash.
{{{#!php
add_filter('edit_link', 'wp_edit_link_filter');
function wp_edit_link_filter($url){
return add_query_arg(array('taonomy'=>'slug'), $url);
}
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35099#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list