pre_update_option_{$option}

Advertisement

Summery Summery

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

Syntax Syntax

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

Description Description

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

Parameters Parameters

$value

(mixed) The new, unserialized option value.

$old_value

(mixed) The old option value.

$option

(string) Option name.

Source Source

File: wp-includes/option.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.