Support

Home Forums Event Espresso Premium How to filter the query for the “Overview” tab in the dashboard?

How to filter the query for the “Overview” tab in the dashboard?

Posted: November 5, 2024 at 12:37 pm

Viewing 1 reply thread


weblinxinc

November 5, 2024 at 12:37 pm

My client wants to exclude a specific category from the “All Events” list in the back-end, except when that category is specifically selected. I can handle writing the query modifications, but I’ve been unable to locate a hook that will allow me to modify the query for the “All Events” (i.e. “Overview”) list in the dashboard.


Tony

  • Support Staff

November 5, 2024 at 2:31 pm

You’ll likely need:

apply_filters('FHEE__Events_Admin_Page__get_events__where', $where, $request_params);

But there is also:

$query_params   = apply_filters(
    'FHEE__Events_Admin_Page__get_events__query_params',
    [
        $where,
        'limit'    => $limit,
        'order_by' => $orderby,
        'order'    => $order,
        'group_by' => 'EVT_ID',
    ],
    $request_params
);

Which runs right after the first filter.

It’s using our model system so you’ll need to be familiar with:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/model-query-params.md

Viewing 1 reply thread

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso