LLMS_Events_Query::get_events()
Retrieve an array of LLMS_Event objects for the given result set returned by the query
Return Return
(array)
Source Source
File: includes/class-llms-events-query.php
public function get_events() { $events = array(); $results = $this->get_results(); if ( $results ) { foreach ( $results as $result ) { $events[] = new LLMS_Event( $result->id, true ); } } if ( $this->get( 'suppress_filters' ) ) { return $events; } /** * Filters the list of events * * @since 3.36.0 * * @param LLMS_Event[] $events Array of LLMS_Event instances. * @param LLMS_Events_Query $events_query Instance of LLMS_Events_Query. */ return apply_filters( 'llms_events_query_get_events', $events, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Drop usage of $this->get_filter('get_events') in favor of 'llms_events_query_get_events' . |
3.36.0 | Introduced. |