Filter panel hooks
This page lists the 1 hooks of this group. Each entry shows its type, the version it arrived in, where it runs, its arguments and a starting point.
adba_filters_panel
FilterSince 2.15.0 Runs in src/Modules/FilterPanel/FilterPanel.php.
Filters whether the filters of a list show as a panel: auto (phones, and wide screens when the filters do not fit), always or never.
| Argument | Type | Description |
|---|---|---|
$mode | string | The site setting: auto, always or never. |
$screen_id | string | Current screen id. |
add_filter( 'adba_filters_panel', function ( $mode, $screen_id ) {
return $mode;
}, 10, 2 );