pre_update_option WordPress Filter Hook

The pre_update_option hook is triggered before an option is updated in the database. This hook can be used to perform a security check or data validation before an option is updated.

apply_filters( 'pre_update_option', mixed $value, string $option, mixed $old_value ) #

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


Parameters

$value

(mixed)The new, unserialized option value.

$option

(string)Name of the option.

$old_value

(mixed)The old option value.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More