Make WordPress Core


Ignore:
Timestamp:
05/06/2009 08:33:59 PM (16 years ago)
Author:
westi
Message:

Update phpDoc for update_option. See #8805 props rmccue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r11204 r11221  
    472472 * to set whether an option autoloaded, then you need to use the add_option().
    473473 *
    474  * When the option is updated, then the filter named
    475  * 'update_option_$option_name', with the $option_name as the $option_name
     474 * Before the option is updated, then the filter named
     475 * 'pre_update_option_$option_name', with the $option_name as the $option_name
    476476 * parameter value, will be called. The hook should accept two parameters, the
    477  * first is the old parameter and the second is the new parameter.
     477 * first is the new value and the second is the old value.  Whatever is
     478 * returned will be used as the new value.
     479 *
     480 * After the value has been updated the action named 'update_option_$option_name'
     481 * will be called.  This action receives two parameters the first being the old
     482 * value and the second the new value.
    478483 *
    479484 * @since 1.0.0
Note: See TracChangeset for help on using the changeset viewer.