pre_update_option

pre_update_option

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_update_option') is found 1 times:

  • /wp-includes/option.php line 904
    	 * @param mixed  $value     The new, unserialized option value.
    	 * @param string $option    Name of the option.
    	 * @param mixed  $old_value The old option value.
    	 */
    	$value = apply_filters( 'pre_update_option', $value, $option, $old_value );
    
    	/*
    	 * If the new and old values are the same, no need to update.
    	 *
    	 * Unserialized values will be adequate in most cases. If the unserialized
    	 * data differs, the (maybe) serialized data is checked to avoid
    

See this hook used in plugins: