handbook/internal-api/wp-cli-line.md
github-actions[bot] ff2a543077 Regenerate handbook
2026-07-21 08:35:57 +00:00

2.7 KiB

WP_CLI::line()

Display informational message without prefix, and ignore --quiet.


Usage

WP_CLI::line( $message = '', $newline = true )
$message (string) Message to display to the end user.
$newline (bool) Optional. Whether to append a newline to the end of the message. Default true.
@return (void)

Notes

Message is written to STDOUT. WP_CLI::log() is typically recommended; WP_CLI::line() is included for historical compat.

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