[wp-trac] [WordPress Trac] #5208: New filter:
pre_update_option_{option-name}
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 15 23:25:22 GMT 2007
#5208: New filter: pre_update_option_{option-name}
-------------------------+--------------------------------------------------
Reporter: johnbillion | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3.1
Component: General | Version: 2.3
Severity: minor | Keywords: update_option, pre_update_option, hook, filter
-------------------------+--------------------------------------------------
The `update_option` function has an action hook on it but not a filter. We
like filters.
Introducing `pre_update_option_{option-name}`. This will mainly serve as a
method for plugins to filter their own options before they get saved to
the database (user input sanitising, etc).
--
Ticket URL: <http://trac.wordpress.org/ticket/5208>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list