Astra_Addon_Admin_Loader::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/core/class-astra-addon-admin-loader.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; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |