Recent

crp_get_option_{key} filter

crp_get_option_{key}

Key specific filter for the value of the option being fetched.

Type: filter
Since: 2.6.0
Source: includes/options-api.php line 78

Parameters

TypeNameDescription
mixed$valueValue of the option
mixed$keyName of the option
mixed$default_valueDefault value

Usage

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