移除WordPress顶部工具条

WordPress 云上的幻象 11个月前 (05-24) 243次浏览 5个评论 扫描二维码

一行代码彻底移除WordPress默认的顶部工具条(admin bar),将以下代码放到主题”functions.php”中即可。

   add_filter('show_admin_bar', '__return_false');
喜欢 (0)
[[email protected]]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(5)个小伙伴在吐槽
  1. Substance Abuse And Domestic Violence http://aaa-rehab.com Drug Rehab Near Me Best Inpatient Rehab http://fashiontap.com/Davorv
    Drug Abuse Rehabilitation Center2020-04-01 05:59 (4天前)回复 Windows 10 | Chrome 67.0.3396.87
  2. Center For Substance Abuse Treatment http://aaa-rehab.com Alcohol Rehab Centers Polysubstance Use Disorder http://galas.grodno.by/user/rehabcenter/
    Substance Abuse Services2020-03-31 13:42 (5天前)回复 Windows 7 | Chrome 68.0.3440.106
  3. Free Methadone Clinic http://aaa-rehab.com Drug Rehab Prevention Of Alcohol Abuse http://droids-download.ru/user/rehabcenters/
    Inpatient Rehab Centers Near Me2020-03-30 21:29 (5天前)回复 Windows 7 | Chrome 68.0.3440.106
  4. Opioid Rehab Centers http://aaa-rehab.com Drug Rehab Inpatient Alcohol Rehab Centers http://www.foroproyectores.es/members/165161-crehab
    Alcohol Group Therapy2020-03-30 06:02 (6天前)回复 Windows 10 | Chrome 68.0.3440.84
  5. Womens Rehab Program http://aaa-rehab.com Alcohol Rehab Centers http://aaa-rehab.com Free Suboxone Clinics Near Me http://aaa-rehab.com
    Alcohol Clinic2020-03-26 10:39 回复 Windows 7 | Chrome 68.0.3440.106