LLMS_Engagement_Handler::handle_achievement( array $args )
Award an achievement
Parameters Parameters
- $args
-
(array) (Required) Indexed array of arguments.<br>
- (int) WP_User ID.<br>
- '1'
(int) WP_Post ID of the achievement template post.<br> - '2'
(int|string) WP_Post ID of the related post that triggered the award or an empty string.<br> - '3'
(int) WP_Post ID of the engagement post.<br>
Return Return
(WP_Error[]|LLMS_User_Achievement) Returns an array of error objects on failure or the generated achievement object on success.
Source Source
File: includes/class-llms-engagement-handler.php
public static function handle_achievement( $args ) {
return self::handle( 'achievement', $args );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |