WP_CLI
Runner::register_early_invoke()
Register a command for early invocation, generally before WordPress loads.
Method of the class: Runner{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Runner = new Runner(); $Runner->register_early_invoke( $when, $command );
- $when(string) (required)
- Named execution hook
- $command(Subcommand) (required)
- -
Runner::register_early_invoke() Runner::register early invoke code WP-CLI 2.8.0-alpha
public function register_early_invoke( $when, $command ) { $this->early_invoke[ $when ][] = array_slice( Dispatcher\get_path( $command ), 1 ); }