WP_CLI\Bootstrap

DeclareMainClass::process()publicWP-CLI 1.0

Process this single bootstrapping step.

Метод класса: DeclareMainClass{}

Хуков нет.

Возвращает

BootstrapState. Modified state to pass to the next step.

Использование

$DeclareMainClass = new DeclareMainClass();
$DeclareMainClass->process( $state );
$state(BootstrapState) (обязательный)
Contextual state to pass into the step.

Код DeclareMainClass::process() WP-CLI 2.8.0-alpha

public function process( BootstrapState $state ) {
	require_once WP_CLI_ROOT . '/php/class-wp-cli.php';

	return $state;
}