nf_dismiss_upgrade_notice

Keep our upgrade notice closed.

Description

nf_dismiss_upgrade_notice(); 

Usage

  1. if ( !function_exists( 'nf_dismiss_upgrade_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/upgrades/upgrade-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_dismiss_upgrade_notice(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/upgrades/upgrade-functions.php  
  1. function nf_dismiss_upgrade_notice() { 
  2. update_option( 'nf_upgrade_notice', 'closed' ); 
  3. wp_redirect( esc_url_raw( remove_query_arg( 'nf_action' ) ) ); 
  4. exit;