LLMS_Engagements::handle_achievement( array $args )
Award an achievement
Description Description
This is called via do_action() by the ‘maybe_trigger_engagement’ function in this class
Parameters Parameters
- $args
-
(array) (Required) indexed array of args 0 => WP User ID 1 => WP Post ID of the email post 2 => WP Post ID of the related post that triggered the award
Return Return
(void)
Source Source
File: includes/class.llms.engagements.php
public function handle_achievement( $args ) { $this->log( '======== handle_achievement() =======' ); $this->log( $args ); $a = LLMS()->achievements(); $a->trigger_engagement( $args[0], $args[1], $args[2] ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: