Tribe__Events__Repositories__Event::filter_by_hidden( bool $hidden = true )
Filters events to include only those that match the provided hidden state.
Contents
Parameters
- $hidden
-
(bool) (Optional) Whether the events should be hidden or not.
Default value: true
Source
File: src/Tribe/Repositories/Event.php
public function filter_by_hidden( $hidden = true ) { $this->by( (bool) $hidden ? 'meta_exists' : 'meta_not_exists', '_EventHideFromUpcoming', '#' ); }
Changelog
Version | Description |
---|---|
4.9 | Introduced. |