LLMS_REST_Webhooks_Query::get_default_args()
Retrieve default arguments for a query
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-webhooks-query.php
protected function get_default_args() { $args = array( 'include' => array(), 'exclude' => array(), 'status' => '', 'per_page' => 10, ); $args = wp_parse_args( $args, parent::get_default_args() ); if ( $args['suppress_filters'] ) { return $args; } /** * Filters the webhooks query default args * * @since 1.0.0-beta.1 * * @param array $args Array of default arguments to set up the query with. * @param LLMS_REST_Webhooks_Query $webhooks_query Instance of LLMS_REST_Webhooks_Query. */ return apply_filters( 'llms_rest_webhook_query_default_args', $args, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.16 | Drop usage of this->get_filter( 'default_args' ) in favor of 'llms_rest_webhook_query_default_args' . |
1.0.0-beta.1 | Introduced. |