WP_CLI\Bootstrap
LoadUtilityFunctions{}└─ BootstrapStep
Class LoadUtilityFunctions.
Loads the functions available through WP_CLI\Utils.
No Hooks.
Usage
$LoadUtilityFunctions = new LoadUtilityFunctions(); // use class methods
Methods
Notes
- Package: WP_CLI\Bootstrap
LoadUtilityFunctions{} LoadUtilityFunctions{} code WP-CLI 2.13.0-alpha
final class LoadUtilityFunctions implements BootstrapStep {
/**
* Process this single bootstrapping step.
*
* @param BootstrapState $state Contextual state to pass into the step.
*
* @return BootstrapState Modified state to pass to the next step.
*/
public function process( BootstrapState $state ) {
require_once WP_CLI_ROOT . '/php/utils.php';
return $state;
}
}