dismiss_core_update() WordPress Function
The dismiss_core_update() function is used to dismiss a core update notification. It does not actually disable or remove the update.
dismiss_core_update( object $update ) #
Dismisses core update.
Parameters
- $update
(object)(Required)
Return
(bool)
Source
File: wp-admin/includes/update.php
170 171 172 173 174 | function dismiss_core_update( $update ) { $dismissed = get_site_option( 'dismissed_update_core' ); $dismissed [ $update ->current . '|' . $update ->locale ] = true; return update_site_option( 'dismissed_update_core' , $dismissed ); } |
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |