apply_filters( 'tec_tickets_commerce_get_ticket_before', mixed $return , mixed $ticket , string|null $output , string $filter )
Filters the ticket 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 ticket object to return.
- $ticket
-
(mixed) The ticket object to fetch.
- $output
-
(string|null) The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to a
WP_Post
object, an associative array, or a numeric array, respectively. Defaults toOBJECT
. - $filter
-
(string) Type of filter to apply.
Source
Changelog
Version | Description |
---|---|
5.1.9 | Introduced. |