wordpress关闭管理菜单(前端不显示顶部菜单)

  • A+
所属分类:Wordpress
//hide admin bar
if ( !current_user_can( 'manage_options' ) ) { 
    add_filter('show_admin_bar', '__return_false');
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: