LLMS_Engagements::handle_email( mixed[] $args )
Send an email engagement
Description Description
This is called via do_action() by the ‘maybe_trigger_engagement’ function in this class.
Parameters Parameters
- $args
-
(Required) An array of arguments from the triggering hook.
- (int) WP_User ID.
- '1'
(int) WP_Post ID of the email. - '2'
(int|string) WP_Post ID of the related triggering post or an empty string for engagements with no related post.
Return Return
(bool|WP_Error) Returns true
on success or a WP_Error when the email has failed or is prevented.
Source Source
File: includes/class.llms.engagements.php
Changelog Changelog
Version | Description |
---|---|
4.4.3 | Fixed different emails triggered by the same related post not sent because of a wrong duplicate check. Fixed dupcheck log message and error message which reversed the email and person order. |
4.4.1 | Use postmeta helpers for dupcheck and postmeta insertion. Add a return value in favor of void . Log successes and failures to the engagement-emails log file instead of the main llms log. |
3.8.0 | Unknown. |
2.3.0 | Introduced. |