LLMS_Events_Query::get_default_args()
Retrieve default arguments for a query
Return Return
(array)
Source Source
File: includes/class-llms-events-query.php
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | protected function get_default_args() { $args = array ( 'actor' => array (), 'actor_not_in' => array (), 'date_after' => '' , 'date_before' => '' , 'exclude' => array (), 'include' => array (), 'object_type' => '' , 'object' => array (), 'object_not_in' => array (), 'event_type' => '' , 'event_action' => '' , 'sort' => array ( 'date' => 'DESC' , ), ); $args = wp_parse_args( $args , parent::get_default_args() ); if ( $args [ 'suppress_filters' ] ) { return $args ; } /** * Filters the events query default args * * @since 3.36.0 * * @param array $args Array of default arguments to set up the query with. * @param LLMS_Events_Query $events_query Instance of LLMS_Events_Query. */ return apply_filters( 'llms_events_query_default_args' , $args , $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( 'default_args' ) in favor of 'llms_events_query_default_args' . |
3.36.0 | Introduced. |