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_Settings_Engagements::get_certificate_size_opts()

Retrieves the options array for the lifterlms_certificate_default_size option.


Return Return

(array)


Top ↑

Source Source

File: includes/admin/settings/class.llms.settings.engagements.php

	private function get_certificate_size_opts() {

		$units = llms_get_certificate_units();

		$sizes = array();

		foreach ( llms_get_certificate_sizes() as $size_id => $data ) {

			$unit = $units[ $data['unit'] ] ?? '';

			$sizes[ $size_id ] = sprintf(
				'%1$s (%2$s%4$s x %3$s%4$s)',
				$data['name'],
				$data['width'],
				$data['height'],
				$unit['symbol'] ?? ''
			);

		}

		return $sizes;

	}


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.