Tribe__Events__Pro__Repositories__Event::get_render_contexts_requiring_collapse()
Returns a filtered list of render contexts that require recurring event instance collapsing if the “Show only the first instance of each recurring event” setting is truthy.
Return
(array) A filtered list of render contexts that require recurring event instance collapsing if the "Show only the first instance of each recurring event" setting is truthy.
Source
File: src/Tribe/Repositories/Event.php
public function get_render_contexts_requiring_collapse() {
/**
* Filters the list of render contexts that require recurring event
* instance collapsing if the "Show only the first instance of each recurring event"
* setting is truthy.
*
* @since 4.7
*
* @param array $contexts The list of render contexts that require recurring event
* instance collapsing if the "Show only the first instance of each recurring event"
* setting is truthy.
* @param Tribe__Repository__Interface This repository object.
*/
$contexts = apply_filters(
"tribe_repository_{$this->filter_name}_render_contexts_requiring_collapse",
array( 'widget' ),
$this
);
return $contexts;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |