[wp-trac] [WordPress Trac] #37446: Introduce a filter for `self_admin_url()`

WordPress Trac noreply at wordpress.org
Sat Jul 23 14:03:00 UTC 2016


#37446: Introduce a filter for `self_admin_url()`
----------------------------+-----------------------------
 Reporter:  flixos90        |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:  needs-patch
  Focuses:  multisite       |
----------------------------+-----------------------------
 I'm currently building a plugin which includes an additional
 administration panel (like the network or user admin). However, the
 function `self_admin_url()` is impossible to adjust to that new
 functionality. I would like to be able to have it return the admin URL to
 my new administration panel if it is active.

 Therefore I propose to introduce a new filter `self_admin_url` for the
 function. A developer could hook into that, check whether the custom
 administration panel is currently active and then adjust the returned URL
 accordingly.

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


More information about the wp-trac mailing list