Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_ob_end_flush_all() | Flush all output buffers for PHP 5.2. |
wp-includes/load.php: is_wp_error() | Check whether variable is a WordPress Error. |
Displays the given administration message.
(string|WP_Error) (Required)
File: wp-admin/includes/misc.php
function show_message( $message ) { if ( is_wp_error( $message ) ) { if ( $message->get_error_data() && is_string( $message->get_error_data() ) ) { $message = $message->get_error_message() . ': ' . $message->get_error_data(); } else { $message = $message->get_error_message(); } } echo "<p>$message</p>\n"; wp_ob_end_flush_all(); flush(); }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/show_message