Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Engagements::get_engagements( string $trigger_type, $related_post_id = '' )
Retrieve engagements based on the trigger type
Description Description
Joins rather than nested loops and sub queries ftw.
Parameters Parameters
- $trigger_type
-
(Required) Name of the trigger to look for.
Return Return
(array) Array of objects. Array( [0] => stdClass Object ( [engagement_id] => 123, // WordPress Post ID of the event post (email, certificate, achievement, etc...) [trigger_id] => 123, // this is the Post ID of the llms_engagement post [trigger_event] => 'user_registration', // triggering action [event_type] => 'certificate', // engagement event action [delay] => 0, // time in days to delay the engagement ) )
Source Source
File: includes/class.llms.engagements.php
Changelog Changelog
Version | Description |
---|---|
3.13.1 | Unknown. |
2.3.0 | Introduced. |