默认管理栏回调。
原型
_admin_bar_bump_cb()
源文件
路径:wp-includes/admin-bar.php
<?php
...
function _admin_bar_bump_cb() { ?>
<style type="text/css" media="screen">
html { margin-top: 32px !important; }
* html body { margin-top: 32px !important; }
@media screen and ( max-width: 782px ) {
html { margin-top: 46px !important; }
* html body { margin-top: 46px !important; }
}
</style>
<?php
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/_admin_bar_bump_cb/