Filter: ep_feature_is_available

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

apply_filters( 'ep_feature_is_available', $settings_schema, $feature_slug, $feature ) → {array}

Filter the settings schema of a feature

Parameters:
Name Type Description
$settings_schema array

True if the feature is available

$feature_slug string

Feature slug

$feature Feature

Feature object

Since:
  • 5.0.0
Source:
Returns:

New $settings_schema value

Type
array