_admin_bar_bump_cb() WordPress Function

The function _admin_bar_bump_cb() is used to display a notification in the WordPress admin bar when the site is updated. The notification includes a link to the updated content.

_admin_bar_bump_cb() #

Prints default admin bar callback.


Source

File: wp-includes/admin-bar.php

function _admin_bar_bump_cb() {
	$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
	?>
<style<?php echo $type_attr; ?> media="screen">
	html { margin-top: 32px !important; }
	@media screen and ( max-width: 782px ) {
		html { margin-top: 46px !important; }
	}
</style>
	<?php
}


Top ↑

Changelog

Changelog
VersionDescription
3.1.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.