LLMS_REST_API_Keys_Query::get_default_args()

Retrieve default arguments for a query


Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys-query.php

	protected function get_default_args() {

		$args = array(
			'include'     => array(),
			'exclude'     => array(),
			'per_page'    => 10,
			'permissions' => '',
			'user'        => array(),
			'user_not_in' => array(),
		);

		$args = wp_parse_args( $args, parent::get_default_args() );

		if ( $args['suppress_filters'] ) {
			return $args;
		}

		/**
		 * Filters the api keys 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_API_Keys_Query $api_keys_query Instance of LLMS_REST_API_Keys_Query.
		 */
		return apply_filters( 'llms_rest_api_key_query_default_args', $args, $this );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.16 Drop usage of this->get_filter( 'default_args' ) in favor of 'llms_rest_api_key_query_default_args'.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.