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.


Top ↑

Source Source

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

function llms_get_certificate_merge_codes() {

	return 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' ),
	);

}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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