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

use WPForms\Helpers\CacheBase;

/**
 * Class CoreInfoCache handles plugin information caching.
 *
 * @since 1.8.6
 */
class CoreInfoCache extends CacheBase {

	/**
	 * Remote source URL.
	 *
	 * @since 1.9.3
	 *
	 * @var string
	 */
	const REMOTE_SOURCE = 'https://wpformsapi.com/feeds/v1/core/';

	/**
	 * Determine if the class is allowed to load.
	 *
	 * @since 1.8.6
	 *
	 * @return bool
	 */
	protected function allow_load(): bool {

		return is_admin() || wp_doing_cron() || wpforms_doing_wp_cli();
	}

	/**
	 * Provide settings.
	 *
	 * @since 1.8.6
	 *
	 * @return array Settings array.
	 */
	protected function setup(): array {

		return [

			// Remote source URL.
			'remote_source' => self::REMOTE_SOURCE,

			// Addons cache file name.
			'cache_file'    => 'core.json',

			/**
			 * Time-to-live of the core information cache file in seconds.
			 *
			 * This applies to `uploads/wpforms/cache/core.json` file.
			 *
			 * @since 1.8.6
			 *
			 * @param integer $cache_ttl Cache time-to-live, in seconds.
			 *                           Default value: WEEK_IN_SECONDS.
			 */
			'cache_ttl'     => (int) apply_filters( 'wpforms_pro_admin_core_info_cache_ttl', WEEK_IN_SECONDS ),

			// Scheduled update action.
			'update_action' => 'wpforms_pro_core_info_cache_update',
		];
	}

	/**
	 * Prepare core info to store in a local cache..
	 *
	 * @since 1.8.6
	 *
	 * @param array $data Raw remote core data.
	 *
	 * @return array Prepared data for caching.
	 */
	protected function prepare_cache_data( $data ): array {

		if ( empty( $data[0] ) ) {
			return [];
		}

		$cache = $data[0];

		// The remote file doesn't contain these icons, but we need them.
		// The icons are used on the Dashboard > Updates page.
		$cache['icons'] = [
			'1x'      => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-128x128.png',
			'2x'      => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-256x256.png',
			'default' => 'https://plugins.svn.wordpress.org/wpforms-lite/assets/icon-256x256.png',
		];

		return $cache;
	}
}

Filemanager

Name Type Size Permission Actions
Addons Folder 0750
Builder Folder 0750
Education Folder 0750
Entries Folder 0750
Pages Folder 0750
Settings Folder 0750
AdminBarMenu.php File 2.26 KB 0640
CoreInfoCache.php File 2.04 KB 0640
DashboardWidget.php File 31.6 KB 0640
PluginList.php File 26.46 KB 0640
PluginListDisabler.php File 1.83 KB 0640
SiteHealth.php File 4.31 KB 0640
Filemanager