dismiss_core_update

The WordPress Core dismiss core update function.

Description

dismiss_core_update( (object) $update ); 

Parameters (1)

0. $update (object)
The update.

Usage

  1. if ( !function_exists( 'dismiss_core_update' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/update.php'; 
  3.  
  4. // The update. 
  5. $update = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = dismiss_core_update($update); 
  9.  

Defined (1)

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

/wp-admin/includes/update.php  
  1. function dismiss_core_update( $update ) { 
  2. $dismissed = get_site_option( 'dismissed_update_core' ); 
  3. $dismissed[ $update->current . '|' . $update->locale ] = true; 
  4. return update_site_option( 'dismissed_update_core', $dismissed );