llms_get_certificate_image( int $id )

Retrieve an array of image data for a certificate background image

Description Description

If no image found, will default to the LifterLMS placeholder (which can be filtered for a custom placeholder).

Top ↑

Parameters Parameters


(int) (Optional) WP Certificate Post ID. Default is 0. When not provide the current post id will be used.

Top ↑

Return Return

(array) Associative array of certificate image details

Top ↑

Source Source

File: includes/functions/llms.functions.certificate.php

function llms_get_certificate_image( $id = 0 ) {

	$id   = ( $id ) ? $id : get_the_ID();
	$cert = new LLMS_User_Certificate( $id );
	return $cert->get_background_image();


Top ↑

Changelog Changelog

Version Description
6.0.0 Use LLMS_User_Certificate::get_background_image().
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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