ddw_gftb_settings_message

Register & display "Settings updated" message when saving options.

Description

ddw_gftb_settings_message(); 

Usage

  1. if ( !function_exists( 'ddw_gftb_settings_message' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/admin/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_gftb_settings_message(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function ddw_gftb_settings_message() { 
  2.  
  3. /** Register "Update" message */ 
  4. add_settings_error( 'gftb-notices', '', __( 'Toolbar Settings updated.', 'gravity-forms-toolbar' ), 'updated' ); 
  5.  
  6. /** Display message */ 
  7. settings_errors( 'gftb-notices' ); 
  8.  
  9. } // end of function ddw_gftb_settings_message