llms_get_certificate_merge_codes()
Retrieve a list of merge codes that can be used in certificate templates.
Return Return
(string[]) Associative array of merge codes where the array key is the merge code and the array value is a name / description of the merge code.
Source Source
File: includes/functions/llms.functions.certificate.php
function llms_get_certificate_merge_codes() {
/**
* Filters the list of available merge codes for certificates.
*
* @since 9.1.0
*
* @param array[] $codes Associative array of merge codes where the array key is the merge code and the array value is a name / description of the merge code.
*/
return apply_filters(
'llms_certificate_available_merge_codes',
array(
'{site_title}' => __( 'Site Title', 'lifterlms' ),
'{site_url}' => __( 'Site URL', 'lifterlms' ),
'{current_date}' => __( 'Current Date', 'lifterlms' ),
'{earned_date}' => __( 'Earned Date', 'lifterlms' ),
'{first_name}' => __( 'Student First Name', 'lifterlms' ),
'{last_name}' => __( 'Student Last Name', 'lifterlms' ),
'{email_address}' => __( 'Student Email', 'lifterlms' ),
'{student_id}' => __( 'Student User ID', 'lifterlms' ),
'{user_login}' => __( 'Student Username', 'lifterlms' ),
'{certificate_id}' => __( 'Certificate ID', 'lifterlms' ),
'{sequential_id}' => __( 'Sequential Certificate ID', 'lifterlms' ),
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.1.0 | Changed {current_date} label from 'Earned Date' to 'Current Date' and added {earned_date} merge code. |
| 6.0.0 | Introduced. |