WC_Admin_Settings::show_messages()public staticWC 1.0

Output messages + errors.

{} It's a method of the class: WC_Admin_Settings{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Settings::show_messages();

Code of WC_Admin_Settings::show_messages() WC 6.7.0

public static function show_messages() {
	if ( count( self::$errors ) > 0 ) {
		foreach ( self::$errors as $error ) {
			echo '<div id="message" class="error inline"><p><strong>' . esc_html( $error ) . '</strong></p></div>';
		}
	} elseif ( count( self::$messages ) > 0 ) {
		foreach ( self::$messages as $message ) {
			echo '<div id="message" class="updated inline"><p><strong>' . esc_html( $message ) . '</strong></p></div>';
		}
	}
}