LLMS_Awards_Query::get_awards()
Retrieve an array of award objects for the given result set returned by the query.
Return Return
(array) Array of LLMS_User_Achievement and/or LLMS_User_Certificate objects.
Source Source
File: includes/class-llms-awards-query.php
public function get_awards() { $awards = array_filter( array_map( array( $this, 'get_object' ), $this->get_results() ) ); if ( $this->get( 'suppress_filters' ) ) { return $awards; } /** * Filters the query results array. * * @since 6.0.0 * * @param array $awards Array of LLMS_User_Achievement and/or LLMS_User_Certificate objects. * @param LLMS_Awards_Query $query Instance of the query class. */ return apply_filters( 'llms_awards_query_get_awards', $awards, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |