LLMS_REST_API_Keys_Query::get_keys()
Retrieve an array of LLMS_REST_API_Keys for the given result set returned by the query
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-api-keys-query.php
public function get_keys() { $keys = array(); $results = $this->get_results(); if ( $results ) { foreach ( $results as $result ) { $keys[] = LLMS_REST_API()->keys()->get( $result->id, true ); } } if ( $this->get( 'suppress_filters' ) ) { return $keys; } /** * Filters the list of API Keys * * @since 1.0.0-beta.1 * * @param LLMS_REST_API_Key[] $keys Array of LLMS_REST_API_Key instances. * @param LLMS_REST_API_Keys_Query $api_keys_query Instance of LLMS_REST_API_Keys_Query. */ return apply_filters( 'llms_rest_api_key_query_get_keys', $keys, $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( 'get_keys' ) in favor of 'llms_rest_api_key_query_get_keys' . |
1.0.0-beta.1 | Introduced. |