//去掉顶部工具栏
add_filter('show_admin_bar', '__return_false');

相关阅读:https://boke112.com/bkwd/4093.html