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.


Top ↑

Parameters Parameters

$name

(string) (Required) Full (prefixed) option name.

$default

(mixed) (Optional) Default value to use if no option is found.

Default value: ''


Top ↑

Return Return

(mixed) The option value.


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
4.21.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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