Filter: ep_feature_is_visible

apply_filters( 'ep_feature_is_visible', $is_visible, $feature_slug, $feature ) → {bool}

Filter whether a feature is visible or not in the dashboard.

Example:

add_filter(
    'ep_feature_is_visible',
    function ( $is_visible, $feature_slug ) {
        return 'terms' === $feature_slug ? true : $is_visible;
    },
    10,
    2
);
Parameters:
Name Type Description
$is_visible bool

True to display the feature

$feature_slug string

Feature slug

$feature Feature

Feature object

Since:
  • 4.5.0
Source:
Returns:

New $is_visible value

Type
bool