移除WordPress顶部工具条

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

   add_filter('show_admin_bar', '__return_false');

七彩云博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:移除WordPress顶部工具条

您必须 登录 才能发表评论!

(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 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 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 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 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