show_message

Displays the given administration message.

Description

showMessage( $message, (constant) $errormsg = false ); 

Parameters (2)

0. $message
The message.
1. $errormsg — Optional. (constant) => false
The errormsg.

Usage

  1. if ( !function_exists( 'showMessage' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-upload-my-file/inc/umf-funct.php'; 
  3.  
  4. // The message. 
  5. $message = null; 
  6.  
  7. // The errormsg. 
  8. $errormsg = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = showMessage($message, $errormsg); 
  12.  

Defined (1)

The function is defined in the following location(s).

/inc/umf-funct.php  
  1. function showMessage($message, $errormsg = false) 
  2. if ($errormsg) { echo '<div id="message" class="error">';} 
  3. else {echo '<div id="message" class="updated fade">';} 
  4. echo "<p>$message</p></div>";