Tribe__Events__Pro__Repositories__Event::get_display_contexts_requiring_name_expansion()
Returns the filtered list of display contexts that will require the post_name to match not only the parent event one but the instances too.
Return
(array) The filtered list of display contexts that will require the post_name to match not only the parent event one but the instances too.
Source
File: src/Tribe/Repositories/Event.php
public function get_display_contexts_requiring_name_expansion() {
/**
* Filters the list of display contexts that require the `post_name` to be "expanded",
* really used in a regular expression, in ORM queries.
*
* @since 4.7
*
* @param array $contexts The the list of display contexts that require the `post_name` to be "expanded",
* really used in a regular expression, in ORM queries.
* @param Tribe__Repository__Interface This repository object.
*/
$contexts = apply_filters(
"tribe_repository_{$this->filter_name}_display_contexts_requiring_name_expansion",
array( 'all' ),
$this
);
return $contexts;
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |