Astra_Admin_Helper::update_admin_settings_option( string $key, mixed $value, bool $network = false )
Updates an option from the admin settings page.
Description
Parameters
- $key
-
(string) (Required) The option key.
- $value
-
(mixed) (Required) The value to update.
- $network
-
(bool) (Optional) Whether to allow the network admin setting to be overridden on subsites.
Default value: false
Return
(mixed)
Source
File: classes/class-astra-admin-helper.php
public static function update_admin_settings_option( $key, $value, $network = false ) { // Update the site-wide option since we're in the network admin. if ( $network && is_multisite() ) { update_site_option( $key, $value ); } else { update_option( $key, $value ); } }
Expand full source code Collapse full source code View on Trac