WP_CLI
ContextManager::get_context()
Return the current context.
Method of the class: ContextManager{}
No Hooks.
Return
String
. Current context.
Usage
$ContextManager = new ContextManager(); $ContextManager->get_context();
ContextManager::get_context() ContextManager::get context code WP-CLI 2.8.0-alpha
public function get_context() { return $this->current_context; }