Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/wp-cli.tar
Назад
update.php 0000644 00000000543 14720517234 0006546 0 ustar 00 <?php namespace ElementorPro\Modules\WpCli; use Elementor\Modules\WpCli\Update as UpdateBase; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Elementor Page Builder Pro cli tools. */ class Update extends UpdateBase { protected function get_update_db_manager_class() { return '\ElementorPro\Core\Upgrade\Manager'; } } module.php 0000644 00000001461 14720517234 0006551 0 ustar 00 <?php namespace ElementorPro\Modules\WpCli; use Elementor\Core\Base\Module as BaseModule; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Module extends BaseModule { /** * Get module name. * * @since 2.1.0 * @access public * * @return string Module name. */ public function get_name() { return 'wp-cli'; } public static function is_active() { return defined( 'WP_CLI' ) && WP_CLI; } /** * * @since 2.1.0 * @access public */ public function __construct() { \WP_CLI::add_command( 'elementor-pro license', '\ElementorPro\Modules\WpCli\License_Command' ); \WP_CLI::add_command( 'elementor-pro update', '\ElementorPro\Modules\WpCli\Update' ); \WP_CLI::add_command( 'elementor-pro theme-builder', '\ElementorPro\Modules\WpCli\ThemeBuilder' ); } } theme-builder.php 0000644 00000001367 14720517234 0010017 0 ustar 00 <?php namespace ElementorPro\Modules\WpCli; use ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Cache; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Elementor Pro Page Builder cli tools. */ class ThemeBuilder extends \WP_CLI_Command { /** * Clear template conditions cache. * * ## EXAMPLES * * 1. wp elementor-pro theme-builder clear-conditions * * @since 3.13.0 * @access public * @alias clear-conditions */ public function clear_conditions() { $cache = new Conditions_Cache(); $cache_cleared = $cache->regenerate(); if ( is_wp_error( $cache_cleared ) ) { \WP_CLI::error( $cache_cleared->get_error_message() ); } \WP_CLI::success( 'Template conditions cache is cleared.' ); } } license-command.php 0000644 00000003354 14720517234 0010325 0 ustar 00 <?php namespace ElementorPro\Modules\WpCli; use ElementorPro\License\Admin; use ElementorPro\License\API; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Elementor Page Builder Pro cli tools. */ class License_Command extends \WP_CLI_Command { /** * Activate Elementor Pro License key. * * ## EXAMPLES * * 1. wp elementor-pro license activate <license-key> * - This will try activate your license key. */ public function activate( $args, $assoc_args ) { $license_key = $args[0]; $data = API::activate_license( $args[0] ); if ( is_wp_error( $data ) ) { \WP_CLI::error( sprintf( '%s (%s) ', $data->get_error_message(), $data->get_error_code() ) ); } if ( ! $data['success'] ) { $errors = [ 'no_activations_left' => 'You have no more activations left.', 'expired' => 'Your License Has Expired', 'missing' => 'Your license is missing. Please check your key again.', 'cancelled' => 'Your license key has been cancelled', 'key_mismatch' => 'Your license is invalid for this domain. Please check your key again.', ]; if ( isset( $errors[ $data['error'] ] ) ) { $error_msg = $errors[ $data['error'] ]; } else { $error_msg = 'An error occurred. (' . $data['error'] . ')'; } \WP_CLI::error( $error_msg ); } Admin::set_license_key( $license_key ); API::set_license_data( $data ); \WP_CLI::success( 'The License has been activated successfully.' ); } /** * Deactivate Elementor Pro License key. * * ## EXAMPLES * * 1. wp elementor-pro license deactivate. * - This will deactivate your license key. */ public function deactivate() { Admin::deactivate(); \WP_CLI::success( 'The License has been deactivated successfully.' ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка