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_Helper_Options::get_option( string $key, mixed $default = '' )
Retrive a single option
Parameters Parameters
- $key
-
(string) (Required) Option name.
- $default
-
(mixed) (Optional) Default option value if option isn't already set.
Default value: ''
Return Return
(mixed)
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-options.php
private function get_option( $key, $default = '' ) { $options = $this->get_options(); if ( isset( $options[ $key ] ) ) { return $options[ $key ]; } return $default; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |