LLMS_Engagement_Handler::handle_certificate( array $args )

Award an certificate


Parameters Parameters

$args

(array) (Required) Indexed array of arguments.

  • (int) WP_User ID.
  • '1'
    (int) WP_Post ID of the certificate template post.
  • '2'
    (int|string) WP_Post ID of the related post that triggered the award or an empty string.
  • '3'
    (int) WP_Post ID of the engagement post.


Top ↑

Return Return

(WP_Error[]|LLMS_User_Certificate) Returns an array of error objects on failure or the generated certificate object on success.


Top ↑

Source Source

File: includes/class-llms-engagement-handler.php

	public static function handle_certificate( $args ) {
		return self::handle( 'certificate', $args );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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