??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/monicslandscape.co.uk/wp-content/themes/astra/inc/core/class-astra-admin-helper.php
⬅ Kembali
<?php
/**
* Admin settings helper
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Astra
* @link https://wpastra.com/
* @since Astra 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
if ( ! class_exists( 'Astra_Admin_Helper' ) ) {
/**
* Admin Helper
*/
final class Astra_Admin_Helper {
/**
* Returns an option from the database for
* the admin settings page.
*
* @param string $key The option key.
* @param bool $network Whether to allow the network admin setting to be overridden on subsites.
* @return string Return the option value
*/
public static function get_admin_settings_option( $key, $network = false ) {
// Get the site-wide option if we're in the network admin.
if ( $network && is_multisite() ) {
$value = get_site_option( $key );
} else {
$value = get_option( $key );
}
return $value;
}
/**
* Updates an option from the admin settings page.
*
* @param string $key The option key.
* @param mixed $value The value to update.
* @param bool $network Whether to allow the network admin setting to be overridden on subsites.
* @return mixed
*/
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 );
}
}
/**
* Returns an option from the database for
* the admin settings page.
*
* @param string $key The option key.
* @param bool $network Whether to allow the network admin setting to be overridden on subsites.
* @return mixed
*/
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;
}
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 builder
dir
—
2026-06-09 10:06
📁 deprecated
dir
—
2026-06-09 10:06
📁 markup
dir
—
2026-06-09 10:06
🐘 class-astra-admin-helper.php
php
2.1 KB
2025-04-02 11:04
🐘 class-astra-admin-settings.php
php
26.4 KB
2026-04-27 12:20
🐘 class-astra-attr.php
php
2.6 KB
2025-04-02 11:04
🐘 class-astra-command-palette.php
php
8.1 KB
2026-04-16 15:17
🐘 class-astra-enqueue-scripts.php
php
33.8 KB
2026-06-02 14:57
🐘 class-astra-icons.php
php
13.9 KB
2025-09-09 13:41
🐘 class-astra-theme-options.php
php
35.2 KB
2026-05-20 14:19
🐘 class-astra-walker-page.php
php
4.6 KB
2026-02-05 15:31
🐘 class-astra-wp-editor-css.php
php
64.9 KB
2026-04-08 14:31
🐘 class-gutenberg-editor-css.php
php
79.6 KB
2026-05-12 13:03
🐘 class-theme-strings.php
php
5.1 KB
2025-04-02 11:04
🐘 common-functions.php
php
68.5 KB
2026-04-08 14:31
🐘 index.php
php
111 B
2024-11-11 15:51
🐘 sidebar-manager.php
php
2.2 KB
2025-04-02 11:04
🐘 theme-hooks.php
php
8.9 KB
2024-11-11 15:51