[wp-trac] [WordPress Trac] #15054: Add filter hook to get_option
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 7 14:19:48 UTC 2010
#15054: Add filter hook to get_option
-------------------------+--------------------------------------------------
Reporter: leogermani | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords: get_option, filter, hook
-------------------------+--------------------------------------------------
Add a filter hook to get_option function to allow plugins to filter
options.
Current filter 'pre_option_$option' does not pass the option name as a
parameter, so you need to have one specific function for each option you
want to filter. This does not allow you to filter dynamically created
options, nor lets you filter all options if you want to do so.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15054>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list