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.
Parameters Parameters
- $person_id
-
(int) (Required) WP_User ID.
- $achievement_id
-
(int) (Required) WP_Post ID of the achievement template.
- $related_post_id
-
(int) (Required) WP_Post ID of the related post, for example a lesson id.
Return Return
(void)
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 ) ); }
Expand full source code Collapse full source code View on GitHub
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. |