tptn_update_option
Update an option
Updates an ata setting value in both the db and the global variable. Warning: Passing a null value will remove the key from the tptn_options array.
Type: filter
Since: 2.5.0
Source: includes/options-api.php line 113
Parameters
| Type | Name | Description |
|---|---|---|
string | $key | The Key to update. |
string|bool|int|null | $value | The value to set the key to. |
Usage
add_filter( 'tptn_update_option', function($key, $value) {
// ...
return $key;
} );