Warning: This method has been deprecated. LLMS_Certificates::trigger_engagement() is deprecated in favor of LLMS_Engagement_Handler::handle_certificate() instead.
LLMS_Certificates::trigger_engagement( int $person_id, int $certificate_id, int $related_post_id )
Award a certificate to a user.
Description Description
Calls trigger method passing arguments
Parameters Parameters
- $person_id
-
(int) (Required) WP_User ID.
- $certificate_id
-
(int) (Required) WP_Post ID of the certificate template.
- $related_post_id
-
(int) (Required) WP_Post ID of the related post, for example a lesson id.
Return Return
(void)
Source Source
File: includes/class.llms.certificates.php
public function trigger_engagement( $person_id, $certificate_id, $related_post_id ) { _deprecated_function( 'LLMS_Certificates::trigger_engagement()', '6.0.0', 'LLMS_Engagement_Handler::handle_certificate()' ); LLMS_Engagement_Handler::handle_certificate( array( $person_id, $certificate_id, $related_post_id, null ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | LLMS_Certificates::trigger_engagement() is deprecated in favor of LLMS_Engagement_Handler::handle_certificate() . |
1.0.0 | Introduced. |