Priority File Manager
Base Directory:
/home/lvabrwqv/public_html/wp-content
/home/lvabrwqv/public_html
/home/lvabrwqv
/home
/var/www
/var/www/cgi-bin
/var/www/html
wp-content
/
plugins
/
elementor
/
includes
/home/lvabrwqv/public_html/wp-content/plugins/elementor/includes
Name
Type
Size
Actions
📁
..
Folder
-
Delete
Rename
📁
admin-templates
Folder
-
Delete
Rename
📄
api.php
File
8813
Delete
Rename
Edit
Download
📄
autoloader.php
File
10022
Delete
Rename
Edit
Download
📁
base
Folder
-
Delete
Rename
📄
beta-testers.php
File
3059
Delete
Rename
Edit
Download
📄
compatibility.php
File
11221
Delete
Rename
Edit
Download
📄
conditions.php
File
2768
Delete
Rename
Edit
Download
📁
controls
Folder
-
Delete
Rename
📄
db.php
File
16276
Delete
Rename
Edit
Download
📄
editor-assets-api.php
File
1807
Delete
Rename
Edit
Download
📁
editor-templates
Folder
-
Delete
Rename
📁
elements
Folder
-
Delete
Rename
📄
embed.php
File
8679
Delete
Rename
Edit
Download
📄
fonts.php
File
64029
Delete
Rename
Edit
Download
📄
frontend.php
File
40070
Delete
Rename
Edit
Download
📄
heartbeat.php
File
2635
Delete
Rename
Edit
Download
📁
interfaces
Folder
-
Delete
Rename
📁
libraries
Folder
-
Delete
Rename
📄
maintenance-mode.php
File
11426
Delete
Rename
Edit
Download
📄
maintenance.php
File
2881
Delete
Rename
Edit
Download
📁
managers
Folder
-
Delete
Rename
📄
plugin.php
File
15979
Delete
Rename
Edit
Download
📄
preview.php
File
7874
Delete
Rename
Edit
Download
📄
rollback.php
File
4255
Delete
Rename
Edit
Download
📁
settings
Folder
-
Delete
Rename
📄
shapes.php
File
7999
Delete
Rename
Edit
Download
📄
stylesheet.php
File
9124
Delete
Rename
Edit
Download
📁
template-library
Folder
-
Delete
Rename
📄
tracker.php
File
17407
Delete
Rename
Edit
Download
📄
user-data.php
File
3522
Delete
Rename
Edit
Download
📄
user.php
File
10230
Delete
Rename
Edit
Download
📄
utils.php
File
24930
Delete
Rename
Edit
Download
📁
widgets
Folder
-
Delete
Rename
Upload
Create Folder
📝 Editing:
maintenance.php
Size: 2,881 bytes
Lines: 132
Type: .php
💾 Save
Cancel
✕
<?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(); } }
✅ File saved successfully!