
如何在Linux、macOS、Windows服务器上安装PHP
_admin_bar_bump_cb ( No parameters )
_admin_bar_bump_cb: 这个函数用来撞击WordPress的管理栏。它用于确保管理栏出现在页面的其他元素之上。
打印默认的管理栏回调。
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 }