WP_CLI

ContextManager::get_context()publicWP-CLI 1.0

Return the current context.

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

Хуков нет.

Возвращает

Строку. Current context.

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

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

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

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