[wp-trac] [WordPress Trac] #39007: Impossible to access current priority with WP_Hook

WordPress Trac noreply at wordpress.org
Thu Dec 1 21:43:04 UTC 2016


#39007: Impossible to access current priority with WP_Hook
-------------------------------------------------+-------------------------
 Reporter:  Rarst                                |       Owner:  pento
     Type:  feature request                      |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.7
Component:  Plugins                              |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch reporter-feedback needs-   |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by Rarst):

 Not sure about implementation, but API seems to make sense. :)

 One question is would `current_priority()` ''function'' make sense to
 complement `current_filter()` for procedural access? That would make
 conditional logic less clunky (if have new function just use it, otherwise
 do old thing).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39007#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list