WP_CLI\Context
Auto::process()
Process the context to set up the environment correctly.
Method of the class: Auto{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Auto = new Auto(); $Auto->process( $config );
- $config(array) (required)
- Associative array of configuration data.
Auto::process() Auto::process code WP-CLI 2.8.0-alpha
public function process( $config ) { $config['context'] = $this->deduce_best_context(); $this->context_manager->switch_context( $config ); }