답변:
내에서 php/wp-cli.php우리는 다음과 같은 줄을 찾습니다.
// Can be used by plugins/themes to check if WP-CLI is running or not
define( 'WP_CLI', true );
define( 'WP_CLI_VERSION', trim( file_get_contents( WP_CLI_ROOT . '/VERSION' ) ) );
define( 'WP_CLI_START_MICROTIME', microtime( true ) );
WP_CLI또는 WP_CLI_VERSION정의되어 있는지 확인할 수 있습니다 .
WP_CLI확인 선호하는 일정