LLMS_Abstract_Post_Data::recent_events( array $args = array() )
Retrieve recent LLMS_User_Postmeta for the quiz
Parameters Parameters
- $args
-
(array) (Optional) An array of arguments to feed the LLMS_Query_User_Postmeta with.
- 'per_page'
(int) The number of posts to query for. Default 10. - 'types'
(array|string) Array of strings for the type of events to fetch, or a string to fetch them all. Default 'all'. @see LLMS_Query_User_Postmeta::parse_args()
Default value: array()
- 'per_page'
Return Return
(array) Array of LLMS_User_Postmetas.
Source Source
File: includes/abstracts/llms.abstract.post.data.php
public function recent_events( $args = array() ) { $query_args = wp_parse_args( $args, array( 'per_page' => 10, 'types' => 'all', ) ); $query_args['post_id'] = $this->post_id; $query = new LLMS_Query_User_Postmeta( $query_args ); return $query->get_metas(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.31.0 | Introduced. |