Warning: This method has been deprecated. LLMS_Achievements::trigger_engagement() is deprecated in favor of LLMS_Engagement_Handler::handle_achievement() instead.

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


(int) (Required) WP_User ID.


(int) (Required) WP_Post ID of the achievement template.


(int) (Required) WP_Post ID of the related post, for example a lesson id.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class.llms.achievements.php

	public function trigger_engagement( $person_id, $achievement_id, $related_post_id ) {
		_deprecated_function( 'LLMS_Achievements::trigger_engagement()', '6.0.0', 'LLMS_Engagement_Handler::handle_achievements()' );
		LLMS_Engagement_Handler::handle_achievement( array( $person_id, $achievement_id, $related_post_id, null ) );

Top ↑

Changelog Changelog

Version Description
6.0.0 LLMS_Achievements::trigger_engagement() is deprecated in favor of LLMS_Engagement_Handler::handle_achievement().
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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