Astra_Addon_Admin_Loader::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/core/class-astra-addon-admin-loader.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 );
	}

Changelog

Changelog
Version Description
4.0.0 Introduced.

User Contributed Notes

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