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)


Top ↑

Return

(bool)


Top ↑

Source

File: wp-admin/includes/update.php

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 );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.