_admin_bar_bump_cb()
Prints default admin bar callback.
This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.
No Hooks.
Return
null
. Nothing.
Usage
_admin_bar_bump_cb();
Changelog
Since 3.1.0 | Introduced. |
_admin_bar_bump_cb() admin bar bump cb code WP 6.1.1
<?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 }