apply_filters( "pre_update_option_{$option}", mixed $value, mixed $old_value, string $option )

Filters a specific option before its value is (maybe) serialized and updated.


Description

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


Parameters

$value

The new, unserialized option value.

$old_value

The old option value.

$option

Option name.


Source

File: wp-includes/option.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 The $option parameter was added.
WP-2.6.0 Introduced.