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.

$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.


Top ↑

Source Source

File: includes/class.llms.engagements.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.