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_Abstract_Options_Data::get_option_deprecated( string $name, mixed $default = '' )
Retrieve the value of an option from the database
Description Description
This is the "old" (to be deprecated) version of the function.
We will transition extending classes little by little to use the new behavior and deprecate this once all classes are fully transitioned.
Parameters Parameters
- $name
-
(string) (Required) Full (prefixed) option name.
- $default
-
(mixed) (Optional) Default value to use if no option is found.
Default value: ''
Return Return
(mixed) The option value.
Source Source
File: includes/abstracts/llms.abstract.options.data.php
private function get_option_deprecated( $name, $default = '' ) { $val = get_option( $name, '' ); if ( '' === $val ) { return $default; } return $val; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.21.0 | Introduced. |