Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Certificates::generate_export( string $filepath, int $certificate_id )
Generate a downloadable HTML file for a certificate
Description Description
Parameters Parameters
- $filepath
-
(Required) Full path for the created file.
- $certificate_id
-
(Required) WP_Post ID of the earned certificate.
Return Return
(mixed) WP_Error or full path to the generated export.
Source Source
File: includes/class.llms.certificates.php
Changelog Changelog
Version | Description |
---|---|
4.3.1 | Introduce llms_certificate_error WP_Error code. |
3.37.3 | Added action llms_certificate_generate_export . |
3.18.0 | Introduced. |