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. .* }
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |