apply_filters( "llms_proccess_{$type}_engagement", boolean|WP_Error[] $can_process , int $user_id , int $template_id , string $related_id , null|int $engagement_id )
Filters whether or not an engagement should be processed immediately prior to it being sent or awarded.
Description Description
The dynamic portion of this hook, {$type}
refers to the type of engagement being processed, either "email", "certificate", or "achievement".
Parameters Parameters
- $can_process
-
(boolean|WP_Error[]) An array of WP_Errors or true if the engagement can be processed.
- $user_id
-
(int) WP_User ID of the student earning the engagement.
- $template_id
-
(int) WP_Post ID of the template post (llms_achievement or llms_certificate).
- $related_id
-
(string) WP_Post ID of the triggering related post (course, lesson, etc...) or an empty string for user registration.
- $engagement_id
-
(null|int) WP_Post ID of the engagement post used to configure the trigger. A
null
value maybe be passed for legacy delayed engagements which were created without an engagement ID or when manually awarding via the admin UI. }
Source Source
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |