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).
Parameters Parameters
- $id
-
(int) (Optional) WP Certificate Post ID. Default is 0. When not provide the current post id will be used.
Return Return
(array) Associative array of certificate image details
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();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Use LLMS_User_Certificate::get_background_image(). |
| 2.2.0 | Introduced. |