apply_filters( 'ep_feature_is_available', $is_available, $feature_slug, $feature ) → {bool}
Filter whether a feature is available or not.
Example:
add_filter(
'ep_feature_is_available',
function ( $is_available, $feature_slug ) {
return 'terms' === $feature_slug ? true : $is_available;
},
10,
2
);
Parameters:
Name | Type | Description |
---|---|---|
$is_available |
bool | True if the feature is available |
$feature_slug |
string | Feature slug |
$feature |
Feature | Feature object |
- Since:
- 4.5.0
- Source:
Returns:
New $is_available value
- Type
- bool