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: ''


Top ↑

Return Return

(mixed)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: