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


Top ↑

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.


Top ↑

Return Return

(void)


Top ↑

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


Top ↑

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

Top ↑

User Contributed Notes User Contributed Notes

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