handbook/references/internal-api/wp-cli-error-multi-line.md
Pascal Birchler 264cb131bf
Fix handbook information architecture
- Organize files in folders according to the desired structure
- Use directory iterator to loop through all files and folders (makes generation more robust)
2025-06-25 15:38:39 +02:00

2.4 KiB

WP_CLI::error_multi_line()

Display a multi-line error message in a red box. Doesn't exit script.


Usage

WP_CLI::error_multi_line( $message_lines )
$message_lines (array) Multi-line error message to be displayed.

Notes

Error message is written to STDERR.

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