wphooks.info - update_option

update_option

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/option.php:
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
	/**
	 * Fires immediately before an option value is updated.
	 *
	 * @since 2.9.0
	 *
	 * @param string $option    Name of the option to update.
	 * @param mixed  $old_value The old option value.
	 * @param mixed  $value     The new option value.
	 */
	do_action( 'update_option', $option, $old_value, $value );

	$update_args = array(
		'option_value' => $serialized_value,
	);

	if ( null !== $autoload ) {
		$update_args['autoload'] = ( 'no' === $autoload || false === $autoload ) ? 'no' : 'yes';
	}