Event::filter_by_virtual( bool $virtual = true )
Filters events to include only those that match the provided virtual state.
Contents
Parameters
- $virtual
-
(bool) (Optional) Whether the events should be virtual or not.
Default value: true
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, '#' );
}
Changelog
| Version | Description |
|---|---|
| 1.0.1 | Introduced. |