pods_ui_message

Output a message in the WP Dashboard UI.

Description

pods_ui_message( (string) $message, (bool) $error = false ); 

Parameters (2)

0. $message (string)
The message.
1. $error — Optional. (bool) => false
Whether or not it is an error message

Usage

  1. if ( !function_exists( 'pods_ui_message' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/deprecated/deprecated.php'; 
  3.  
  4. // The message. 
  5. $message = ''; 
  6.  
  7. // Whether or not it is an error message 
  8. $error = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = pods_ui_message($message, $error); 
  12.  

Defined (1)

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

/deprecated/deprecated.php  
  1. function pods_ui_message ( $message, $error = false ) { 
  2. pods_deprecated "pods_message", '2.3' ); 
  3.  
  4. pods_message( $message, ( $error ? error : 'notice' ) );