WP_CLI::log() Edit

Display informational message without prefix.


Usage Usage

WP_CLI::log( $message )
$message (string) Message to write to STDOUT.

Top ↑

Notes Notes

Message is written to STDOUT, or discarded when --quiet flag is supplied.

# `wp cli update` lets user know of each step in the update process.
WP_CLI::log( sprintf( 'Downloading from %s...', $download_url ) );

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.


Top ↑