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

WordPress Trac noreply at wordpress.org
Sat Sep 3 07:37:33 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              |   Keywords:  needs-patch
  Focuses:                      |
--------------------------------+-----------------------------
 We currently have a `pre_option_{$option}` filter in `get_option()` to
 short-circuit the process of retrieving an option. I think it would make
 sense to also add a global filter `pre_option`, similar like we have in
 `update_option()`.

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


More information about the wp-trac mailing list