WP_CLI

Runner::register_early_invoke()publicWP-CLI 1.0

Register a command for early invocation, generally before WordPress loads.

Метод класса: Runner{}

Хуков нет.

Возвращает

null. Ничего.

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

$Runner = new Runner();
$Runner->register_early_invoke( $when, $command );
$when(строка) (обязательный)
Named execution hook
$command(Subcommand) (обязательный)
-

Код Runner::register_early_invoke() WP-CLI 2.8.0-alpha

public function register_early_invoke( $when, $command ) {
	$this->early_invoke[ $when ][] = array_slice( Dispatcher\get_path( $command ), 1 );
}