LLMS_Abstract_Options_Data::get_option( string $name, mixed $default = '' )
Retrieve the value of an option from the database
Description Description
Parameters Parameters
- $name
-
(string) (Required) option name (unprefixed)
- $default
-
(mixed) (Optional) default value to use if no option is found
Default value: ''
Return Return
(mixed)
Source Source
File: includes/abstracts/llms.abstract.options.data.php
public function get_option( $name, $default = '' ) { $val = get_option( $this->get_option_name( $name ), '' ); if ( '' === $val ) { return $default; } return $val; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: