monsterinsights_remove_settings_notice

The Google Analytics for WordPress by MonsterInsights monsterinsights remove settings notice function.

Description

monsterinsights_remove_settings_notice( (string) $name ); 

Parameters (1)

0. $name (string)
The name.

Usage

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

Defined (1)

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

/includes/admin/settings/settings-api.php  
  1. function monsterinsights_remove_settings_notice( $name ) { 
  2. $notices = get_transient( 'monsterinsights_settings_notices' ); 
  3. $found = false; 
  4. if ( ! empty( $notices ) ) { 
  5. if ( isset( $notices[ $name] ) ) { 
  6. unset( $notices[ $name] ); 
  7. set_transient( 'monsterinsights_settings_notices', $notices ); 
  8. $found = true; 
  9. } else { 
  10. set_transient( 'monsterinsights_settings_notices', $notices ); 
  11. return $found;