WordPress at a glance
function is not described

show_message() WP 2.1.0

Displays the given administration message.

No Hooks.

Return

null. Nothing.

Usage

show_message( $message );
$message *(string WP_Error) (required)*

Changelog

Since 2.1.0 Introduced.

Code of show_message() WP 5.7.2

<?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();
}