Update phpDoc for update_option. See #8805 props rmccue.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e89d78ee08
commit
0c5393432e
|
@ -471,10 +471,15 @@ function wp_load_alloptions() {
|
||||||
* value, but you will not be able to set whether it is autoloaded. If you want
|
* value, but you will not be able to set whether it is autoloaded. If you want
|
||||||
* to set whether an option autoloaded, then you need to use the add_option().
|
* to set whether an option autoloaded, then you need to use the add_option().
|
||||||
*
|
*
|
||||||
* When the option is updated, then the filter named
|
* Before the option is updated, then the filter named
|
||||||
* 'update_option_$option_name', with the $option_name as the $option_name
|
* 'pre_update_option_$option_name', with the $option_name as the $option_name
|
||||||
* parameter value, will be called. The hook should accept two parameters, the
|
* parameter value, will be called. The hook should accept two parameters, the
|
||||||
* first is the old parameter and the second is the new parameter.
|
* first is the new value and the second is the old value. Whatever is
|
||||||
|
* returned will be used as the new value.
|
||||||
|
*
|
||||||
|
* After the value has been updated the action named 'update_option_$option_name'
|
||||||
|
* will be called. This action receives two parameters the first being the old
|
||||||
|
* value and the second the new value.
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
|
|
Loading…
Reference in New Issue