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.

No Hooks.

Return

null. Nothing.

Usage

bootstrap();

Code of 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 );
	}
}