WP_CLI
bootstrap()
Process the bootstrapping steps.
Loops over each of the provided steps, instantiates it and then calls its process() method.
No Hooks.
Return
null
. Nothing (null).
Usage
bootstrap();
bootstrap() bootstrap code WP-CLI 2.8.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 ); } }