Tribe__Events__Repositories__Event::filter_by_hidden( bool $hidden = true )

Filters events to include only those that match the provided hidden state.


Parameters

$hidden

(bool) (Optional) Whether the events should be hidden or not.

Default value: true


Top ↑

Source

File: src/Tribe/Repositories/Event.php

	public function filter_by_hidden( $hidden = true ) {
		$this->by( (bool) $hidden ? 'meta_exists' : 'meta_not_exists', '_EventHideFromUpcoming', '#' );
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.