Filter: ep_facet_types

apply_filters( 'ep_facet_types', $types ) → {array}

Filter the Facet types available.

add_filter(
    'ep_facet_types',
    function ( $types ) {
        $types['post_type'] = '\MyPlugin\PostType';
        return $types;
    }
);
Parameters:
Name Type Description
$types array

Array of types available. Keys are slugs, values are class names.

Since:
  • 4.3.0
Source:
Returns:

New array of types available

Type
array