WP_CLI\Bootstrap

DeclareMainClass{}WP-CLI 1.0

Class DeclareMainClass.

Declares the main WP_CLI class.

Хуков нет.

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

$DeclareMainClass = new DeclareMainClass();
// use class methods

Методы

  1. public process( BootstrapState $state )

Заметки

  • Пакет: WP_CLI\Bootstrap

Код DeclareMainClass{} WP-CLI 2.8.0-alpha

final class DeclareMainClass 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/class-wp-cli.php';

		return $state;
	}
}