[wp-trac] [WordPress Trac] #37930: Introduce a general `pre_option` filter in `get_option()`

WordPress Trac noreply at wordpress.org
Sat Dec 10 22:29:52 UTC 2016


#37930: Introduce a general `pre_option` filter in `get_option()`
--------------------------------+------------------------------
 Reporter:  flixos90            |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:
--------------------------------+------------------------------

Comment (by NathanAtmoz):

 I think this makes sense. I just have a question about the order.

 The get_option() function filters `pre_update_option_{$option}` before
 `pre_update_option`, so would it make more sense to keep the same order in
 get_option()?

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


More information about the wp-trac mailing list