Recent

tptn_update_optionfilter

tptn_update_option

Filters a setting value before it is written to the options table.

Type: filter
Since: 2.5.0
Source: includes/options-api.php line 119

Parameters

Type Name Description
mixed $value The value being saved.
string $key The settings key being updated.

Usage

add_filter( 'tptn_update_option', function($value, $key) {
    // ...
    return $value;
} );