WP_CLI\Loggers

Base::write()protectedWP-CLI 1.0

Write a string to a resource.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->write( $handle, $str );
$handle(resource) (обязательный)
Commonly STDOUT or STDERR.
$str(строка) (обязательный)
Message to write.

Код Base::write() WP-CLI 2.8.0-alpha

protected function write( $handle, $str ) {
	fwrite( $handle, $str );
}