LLMS_Achievements::trigger_engagement( int $person_id, int $achievement_id, int $related_post_id )

Award an achievement to a user


Description Description

Calls trigger method passing arguments.


Top ↑

Parameters Parameters

$person_id

(int) (Required) [ID of the current user]

$achievement_id

(int) (Required) [Achievement template post ID]

$related_post_id

(int) (Required) Post ID of the related engagement (eg lesson id)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.achievements.php

		$query = new WP_Query( $query_args );

		$achievements = array();

Top ↑

Changelog Changelog

Changelog
Version Description
?? Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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