X7ROOT File Manager
Current Path:
/home/notabjze/usahomesolar.org/wp-content/themes/astra/inc/core
home
/
notabjze
/
usahomesolar.org
/
wp-content
/
themes
/
astra
/
inc
/
core
/
ðŸ“
..
ðŸ“
builder
📄
class-astra-admin-helper.php
(2.07 KB)
📄
class-astra-admin-settings.php
(24.7 KB)
📄
class-astra-attr.php
(2.64 KB)
📄
class-astra-enqueue-scripts.php
(25.26 KB)
📄
class-astra-icons.php
(12.08 KB)
📄
class-astra-theme-options.php
(34.5 KB)
📄
class-astra-walker-page.php
(4.51 KB)
📄
class-astra-wp-editor-css.php
(63.44 KB)
📄
class-gutenberg-editor-css.php
(78.8 KB)
📄
class-theme-strings.php
(5.08 KB)
📄
common-functions.php
(64.28 KB)
ðŸ“
deprecated
📄
index.php
(111 B)
ðŸ“
markup
📄
sidebar-manager.php
(2.2 KB)
📄
theme-hooks.php
(8.94 KB)
Editing: class-astra-admin-helper.php
<?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; } } }
Upload File
Create Folder