Event::filter_by_virtual( bool $virtual = true )

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


Parameters

$virtual

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

Default value: true


Top ↑

Source

File: src/Tribe/Repositories/Event.php

	public function filter_by_virtual( $virtual = true ) {
		$this->decorated->by( (bool) $virtual ? 'meta_exists' : 'meta_not_exists', Event_Meta::$key_virtual, '#' );
	}

Top ↑

Changelog

Changelog
Version Description
1.0.1 Introduced.