llms_get_certificate_units()

Retrieves units available for certificate dimensions.


Return Return

({) Array of unit information. The array key is the unit ID, which should be a valid absolute length CSS unit. @type string $name Translated name of the unit. @type string $symbol Translated symbol used when displaying dimensions with the unit. .* }


Top ↑

Source Source

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

function llms_get_certificate_units() {

	$units = array(
		'in' => array(
			'name'   => __( 'Inches', 'lifterlms' ),
			'symbol' => _x( '"', 'Symbol for inches', 'lifterlms' ),
		),
		'mm' => array(
			'name'   => __( 'Millimeters', 'lifterlms' ),
			'symbol' => _x( 'mm', 'Symbol for millimeters', 'lifterlms' ),
		),
	);

	/**
	 * Filters the list of certificate dimension units.
	 *
	 * @since 6.0.0
	 *
	 * @param array $units Array of available units.
	 */
	return apply_filters( 'llms_certificate_units', $units );

}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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