Astra_API_Init::update_admin_settings_option( string $key, mixed $value )
Update an value of a key, from the settings database option for the admin settings page.
Description
Parameters
- $key
-
(string) (Required) The option key.
- $value
-
(mixed) (Required) The value to update.
Return
(mixed) Return the option value based on provided key
Source
File: admin/includes/class-astra-api-init.php
public static function update_admin_settings_option( $key, $value ) { $astra_admin_updated_settings = get_option( self::$option_name, array() ); $astra_admin_updated_settings[ $key ] = $value; update_option( self::$option_name, $astra_admin_updated_settings ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |