WP_CLI\Loggers

Execution::ob_start()publicWP-CLI 1.0

Starts output buffering, using a callback to capture output from echo, print, printf (which write to the output buffer 'php://output' rather than STDOUT).

Method of the class: Execution{}

No Hooks.

Return

null. Nothing.

Usage

$Execution = new Execution();
$Execution->ob_start();

Execution::ob_start() code WP-CLI 2.8.0-alpha

public function ob_start() {
	ob_start( [ $this, 'ob_start_callback' ], 1 );
}