Astra_Admin_Helper::delete_admin_settings_option( string $key, bool $network = false )

Returns an option from the database for the admin settings page.


Description


Parameters

$key

(string) (Required) The option key.

$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 delete_admin_settings_option( $key, $network = false ) {

			// Get the site-wide option if we're in the network admin.
			if ( $network && is_multisite() ) {
				$value = delete_site_option( $key );
			} else {
				$value = delete_option( $key );
			}

			return $value;
		}


User Contributed Notes

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