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


Top ↑

Return Return

(mixed)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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