[wp-trac] [WordPress Trac] #33858: Filter for WordPress option
WordPress Trac
noreply at wordpress.org
Mon Sep 14 12:07:12 UTC 2015
#33858: Filter for WordPress option
--------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: 4.3
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
--------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
Comment:
Hi @sebastian.pisula, thanks for the ticket.
There are three filters already in `get_option()`:
* `pre_option_*` to filter the value before it is retrieved and return
early.
* `default_option_*` to filter the default value.
* `option_*` to filter the resulting value.
They should work for your use case too. Could you elaborate on why you
think a new filter is needed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33858#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list