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::has_legacy_certificates()
Determines if legacy certificate options should be displayed.
Description Description
The option used to determine if there are certificates is set during a migration to version from versions earlier than 6.0.0. During the migration if at least one certificate template is migrated, the option is set and the legacy options will be displayed.
Even after all certificates have been individually migrated the option will still be set and should be deleted via the db, set to ‘no’ via the options.php screen or disabled by returning false
from the short circuit filter llms_has_legacy_certificates.
Return Return
(boolean)
Source Source
File: includes/admin/settings/class.llms.settings.engagements.php
private function has_legacy_certificates() { /** * Short-circuits the legacy certificates check preventing a database call. * * This can be used to force-enable or force-disable legacy certificate settings regardless * of the value found in the database option. * * @since 6.0.0 * * @param boolean $has_legacy_certificates Return `true` to force legacy certificate settings on * and `false` to force them off. */ $pre = apply_filters( 'llms_has_legacy_certificates', null ); if ( ! is_null( $pre ) ) { return $pre; } return llms_parse_bool( get_option( 'llms_has_certificates_with_legacy_default_image', 'no' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |