update_option action-hook . WP 2.9.0
Fires immediately before an option value is updated.
Usage
add_action( 'update_option', 'action_function_name_815', 10, 3 ); function action_function_name_815( $option, $old_value, $value ){ // action... }
- $option(string)
- Name of the option to update.
- $old_value(mixed)
- The old option value.
- $value(mixed)
- The new option value.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
update_option
wp-includes/option.php 431
do_action( 'update_option', $option, $old_value, $value );