update_option_{$option}

Advertisement

Summery Summery

Fires after the value of a specific option has been successfully updated.

Syntax Syntax

do_action( "update_option_{$option}", mixed $old_value, mixed $value, string $option )

Description Description

The dynamic portion of the hook name, $option, refers to the option name.

Parameters Parameters

$old_value

The old option value.

$value

The new option value.

$option

Option name.

Source Source

File: wp-includes/option.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 The $option parameter was added.
2.0.1 Introduced.

Advertisement

Leave a Reply