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.


Top ↑

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 ) )


Top ↑

Source Source

File: includes/class.llms.engagements.php



Top ↑

Changelog Changelog

Changelog
Version Description
3.13.1 Unknown.
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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