WP_CLI

ContextManager::get_context │ public │ WP-CLI 1.0

Return the current context.

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

Хуков нет.

Возвращает

string. Current context.

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

$ContextManager = new ContextManager();
$ContextManager->get_context();

Код ContextManager::get_context() WP-CLI 2.13.0-alpha

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