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()


Top ↑

Return Return

(array) Array of LLMS_User_Postmetas.


Top ↑

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();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.31.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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