Query Organizer Arguments and Examples

This document is intended to demonstrate how each available argument can be used when querying the organizers in the database using the ORM. The ORM’s ->where() and ->by() options build SQL queries under the hood and return an array of organizers in the form of WP Post Objects. In addition to all the base query arguments, these filters are available that are specific to the organizers’ posts.

'has_events'

Filters organizers that have events associated with them.

$results = tribe_organizers()->where( 'has_events', true )->all();

Top ↑

'has_no_events'

Filters organizers that have no events associated with them.

$results = tribe_organizers()->where( 'has_no_events', true )->all();