[wp-trac] [WordPress Trac] #39601: In get_term_link() : we should be able to filter the term link structure before token replacement occurs

WordPress Trac noreply at wordpress.org
Mon Jan 16 14:37:48 UTC 2017


#39601: In get_term_link() : we should be able to filter the term link structure
before token replacement occurs
-------------------------+-----------------------------
 Reporter:  nikeo        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:  4.7.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Hi!

 We can currently filter the permalink post structure in `get_permalink()`
 with `pre_post_link`. (
 https://core.trac.wordpress.org/browser/tags/4.7/src/wp-includes/link-
 template.php#L118 )

 It woud be useful to have the same possiblity with term links in
 `get_term_link()` ( https://core.trac.wordpress.org/browser/tags/4.7/src
 /wp-includes/taxonomy.php#L3834 ), with a filter. For example with a
 `pre_term_link` filter.

 That would allow developers to easily disable fancy links for terms in a
 given context, which is possible right now for posts but not easy to
 achieve with terms.

 Hope this makes sense, thanks !

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39601>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list