Event_Period::get_ids( bool $return_generator = false, int $batch_size = 50 )

Gets the ids of the posts matching the query.


Parameters

$return_generator

(bool) (Optional) Whether to return a generator of post IDs instead of an array of post IDs.

Default value: false

$batch_size

(int) (Optional) The number of post IDs to fetch at a time when using a generator; ignored if $return_generator is false.

Default value: 50


Top ↑

Return

(TribeEventsViewsV2Repositoryarray<int>|TribeEventsViewsV2RepositoryGenerator<int>) An array of all the matching post IDs, or a generator of them if $return_generator is true.


Top ↑

Source

File: src/Tribe/Views/V2/Repository/Event_Period.php

	public function get_ids() {
		return $this->get_sets_ids( $this->get_sets() );
	}

Top ↑

Changelog

Changelog
Version Description
5.2.0 Added the $return_generator and $batch_size parameters.
4.9.13 Introduced.