tribe_get_events( array $args = array(), bool $full = false )

Get Events from the database.

Queries the events using the Query wrapper around the Events Repository.


Parameters

$args

(array) (Optional) Array of Query parameters

Default value: array()

$full

(bool) (Optional) Whether to return an array of event posts (default) or the query object to fetch them.

Default value: false


Top ↑

Return

(array|WP_Query) A list of event posts matching the query arguments or a WP_Query instance if the $full argument is set to true.


Top ↑

Source

File: src/functions/template-tags/general.php

	function tribe_get_events( $args = array(), $full = false ) {
		if ( empty ( $args['eventDisplay'] ) ) {
			$args['eventDisplay'] = 'custom';
		}

		return apply_filters( 'tribe_get_events', Tribe__Events__Query::getEvents( $args, $full ), $args, $full );
	}