Title: _admin_bar_bump_cb
Published: April 25, 2014
Last modified: May 20, 2026

---

# _admin_bar_bump_cb()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#wp--skip-link--target)

This function has been deprecated since 6.4.0. Use wp_enqueue_admin_bar_bump_styles()
instead.

Prints default admin bar callback.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#source)󠁿

    ```php
    function _admin_bar_bump_cb() {
    	_deprecated_function( __FUNCTION__, '6.4.0', 'wp_enqueue_admin_bar_bump_styles' );
    	?>
    	<style media="screen">
    	html { margin-top: 32px !important; }
    	@media screen and ( max-width: 782px ) {
    	  html { margin-top: 46px !important; }
    	}
    	</style>
    	<?php
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/deprecated.php#L5960)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L5960-L5970)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.4.0](https://developer.wordpress.org/reference/since/6.4.0/) | Deprecated. Use [wp_enqueue_admin_bar_bump_styles()](https://developer.wordpress.org/reference/functions/wp_enqueue_admin_bar_bump_styles/) instead. | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2F_admin_bar_bump_cb%2F)
before being able to contribute a note or feedback.