WP_CLI

ContextManager::get_context()publicWP-CLI 1.0

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() code WP-CLI 2.8.0-alpha

public function get_context() {
	return $this->current_context;
}