Skip to content

Latest commit

 

History

History
77 lines (33 loc) · 2.32 KB

File metadata and controls

77 lines (33 loc) · 2.32 KB
layout default
title WP_CLI::log()
description Display informational message without prefix.

Docs » Internal API » Output

WP_CLI::log()

Display informational message without prefix.


Usage

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

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.


Related