apply_filters( 'tribe_get_event_before', mixed $return , mixed $event , string|null $output , string $filter )
Filters the event result before any logic applies.
Contents
Returning a non null value here will short-circuit the function and return the value. Note: this value will not be cached and the caching of this value is a duty left to the filtering function.
Parameters
- $return
-
(mixed) The event object to return.
- $event
-
(mixed) The event object to fetch.
- $output
-
(string|null) The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to a
WP_Postobject, an associative array, or a numeric array, respectively. Defaults toOBJECT. - $filter
-
(string) Type of filter to apply. Accepts 'raw', a valid date string or object to localize the event in a specific time-frame.
Source
Changelog
| Version | Description |
|---|---|
| 4.9.7 | Introduced. |