monsterinsights_get_settings_notices

The Google Analytics for WordPress by MonsterInsights monsterinsights get settings notices function.

Description

monsterinsights_get_settings_notices( (bool) $delete_on_retrieve = true ); 

Parameters (1)

0. $delete_on_retrieve — Optional. (bool) => true
The delete on retrieve.

Usage

  1. if ( !function_exists( 'monsterinsights_get_settings_notices' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/admin/settings/settings-api.php'; 
  3.  
  4. // The delete on retrieve. 
  5. $delete_on_retrieve = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = monsterinsights_get_settings_notices($delete_on_retrieve); 
  9.  

Defined (1)

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

/includes/admin/settings/settings-api.php  
  1. function monsterinsights_get_settings_notices( $delete_on_retrieve = true ) { 
  2. $notices = get_transient( 'monsterinsights_settings_notices' ); 
  3. if ( $delete_on_retrieve ) { 
  4. delete_transient( 'monsterinsights_settings_notices' ); 
  5. return $notices;