WP_CLI\Loggers
Execution::write()
Write a string to a resource.
Method of the class: Execution{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->write( $handle, $str );
- $handle(resource) (required)
- Commonly STDOUT or STDERR.
- $str(string) (required)
- Message to write.
Execution::write() Execution::write code WP-CLI 2.8.0-alpha
protected function write( $handle, $str ) { switch ( $handle ) { case STDOUT: $this->stdout .= $str; break; case STDERR: $this->stderr .= $str; break; } }