apply_filters( 'lifterlms_external_engagement_handler_arguments', array $parsed , object $engagement , int $user_id , int $related_post_id , string $event_type )
Enable 3rd parties to parse custom engagement types.
Parameters Parameters
- $parsed
-
(array) An associative array of parsed data used to trigger the engagement.
- 'handler_action'
(string) (Required) Hook name of the action that will handle awarding the sending the engagement. - 'handler_args'
(array) (Required) Arguments passed to the$handler_action
callback.
- 'handler_action'
- $engagement
-
(object) The engagement object from the
get_engagements()
query. - $user_id
-
(int) WP_User ID who will be awarded the engagement.
- $related_post_id
-
(int) WP_Post ID of the related post.
- $event_type
-
(string) The type of engagement event.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |