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. Use llms_get_certificate_sizes() instead.
LLMS_User_Certificate::get_registered_size_data()
Retrieves the registered size data array for the certificate’s size.
Description Description
This method should not be used without first verifying that the certificate’s size is not set to CUSTOM as this is not a valid size and the sitewide default will be returned.
See also See also
Return Return
(array)
Source Source
File: includes/models/model.llms.user.certificate.php
private function get_registered_size_data() { $size = $this->get_size(); $sizes = llms_get_certificate_sizes(); if ( ! $size || empty( $sizes[ $size ] ) ) { $size = get_option( 'lifterlms_certificate_default_size', 'LETTER' ); } return $sizes[ $size ] ?? array_values( $sizes )[0]; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |