tptn_get_option
Filter the value for the option being fetched.
Type: filter
Since: 2.5.0
Source: includes/options-api.php line 68
Parameters
| Type | Name | Description |
|---|---|---|
mixed | $value | Value of the option |
mixed | $key | Name of the option |
mixed | $default_value | Default value |
Usage
add_filter( 'tptn_get_option', function($value, $key, $default_value) {
// ...
return $value;
} );