-
Notifications
You must be signed in to change notification settings - Fork 1
Admin Filters
Carlos Moreira edited this page Jun 2, 2020
·
1 revision
The admin_filters
feature allows you to add custom filters to the top of your Custom Post Type listing in the administration.
This feature is entirely based on the same feature offered by the Extended CPTs library. Props to them for developing this very useful library.
You can refer to their documentation to check the available options.
Example of the admin_filters
feature being used in your model:
return [
'active' => true,
'type' => 'cpt',
'name' => 'book',
'features' => [
'admin_filters' => array(
'genres' => array(
'taxonomy' => 'genre',
),
'writers' => array(
'taxonomy' => 'writer',
),
),
],
];