Astra_API_Init::get_admin_settings_option( string $key, mixed $default = false )

Returns an value, based on the settings database option for the admin settings page.


Description


Parameters

$key

(string) (Required) The sub-option key.

$default

(mixed) (Optional) Option default value if option is not available.

Default value: false


Return

(mixed) Return the option value based on provided key


Source

File: admin/includes/class-astra-api-init.php

	public static function get_admin_settings_option( $key, $default = false ) {
		$value = isset( self::$astra_admin_settings[ $key ] ) ? self::$astra_admin_settings[ $key ] : $default;
		return $value;
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

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