Warning: This method has been deprecated. LLMS_Engagements::handle_achievement is deprecated in favor of LLMS_Engagement_Handler::handle_achievement instead.
LLMS_Engagements::handle_achievement( array $args )
Award an achievement
Parameters Parameters
- $args
-
(array) (Required) Indexed array of arguments.
- (int) WP_User ID.
- '1'
(int) WP_Post ID of the achievement template post. - '2'
(int|string) WP_Post ID of the related post that triggered the award or an empty string. - '3'
(int) WP_Post ID of the engagement post.
Return Return
(void)
Source Source
File: includes/class.llms.engagements.php
public function handle_achievement( $args ) { _deprecated_function( 'LLMS_Engagements::handle_achievement', '6.0.0', 'LLMS_Engagement_Handler::handle_achievement' ); LLMS_Engagement_Handler::handle_achievement( $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | LLMS_Engagements::handle_achievement is deprecated in favor of LLMS_Engagement_Handler::handle_achievement . |
2.3.0 | Introduced. |