WP_CLI

bootstrap()WP-CLI 1.0

Process the bootstrapping steps.

Loops over each of the provided steps, instantiates it and then calls its process() method.

Хуков нет.

Возвращает

null. Ничего.

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

bootstrap();

Код bootstrap() WP-CLI 2.7.0-alpha

function bootstrap() {
	prepare_bootstrap();
	$state = initialize_bootstrap_state();

	foreach ( get_bootstrap_steps() as $step ) {
		/** @var BootstrapStep $step_instance */
		$step_instance = new $step();
		$state         = $step_instance->process( $state );
	}
}