[wp-trac] [WordPress Trac] #56592: Add filter to wp_redirect_admin_locations()

WordPress Trac noreply at wordpress.org
Sat Sep 17 01:00:52 UTC 2022


#56592: Add filter to wp_redirect_admin_locations()
---------------------------+-----------------------------
 Reporter:  galbaras       |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  6.0.2
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Changing the default admin redirections currently requires removing the
 `template_redirect` action that calls this function and replacing it with
 a different function.

 A more consistent way to do it would be to provide a filter hook for
 `$admins` and another for `$logins`.

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


More information about the wp-trac mailing list