mirror of
https://gh.wpcy.net/https://github.com/mehrshaddarzi/wp-cli-reference-command.git
synced 2026-05-02 05:07:56 +08:00
16 lines
447 B
PHP
16 lines
447 B
PHP
<?php
|
|
|
|
$vendorDir = realpath(dirname(__FILE__) . '/..') . '/vendor';
|
|
if (!defined('WP_CLI_ROOT')) {
|
|
define('WP_CLI_ROOT', $vendorDir . '/wp-cli/wp-cli');
|
|
}
|
|
|
|
include WP_CLI_ROOT . '/php/utils.php';
|
|
include WP_CLI_ROOT . '/php/dispatcher.php';
|
|
include WP_CLI_ROOT . '/php/class-wp-cli.php';
|
|
include WP_CLI_ROOT . '/php/class-wp-cli-command.php';
|
|
|
|
\WP_CLI\Utils\load_dependencies();
|
|
|
|
require_once 'Logger.php';
|
|
\WP_CLI::set_logger(new Logger());
|