如何去掉後臺管理介面的 「關於 wordpress」 的導航選單

正在檢視 2 個帖子:1-2 (共 2 個帖子)
  • 作者
    帖子
  • 364501079
    • 文章數量: 52
    @364501079
    樓主

    我想要去掉打紅圈的這個導航選單。。但是找了好久找不到
    這個鉤子是什麼。。

    只知道鉤子執行鉤子是這個
    do_action(’in_admin_header’)

    但是 add_action(‘in_admin_header’) 不知道在那個檔案
    filter 是什麼?

    詩語
    管理員
    • 文章數量: 5,930
    @feibisi

    加到主題的 functions.php 檔案裡,下面的程式碼。

    remove_menu('wp-logo');
    }
    add_action( 'wp_before_admin_bar_render', 'mc_remove_wp_logo_from_admin_bar', 7 );
正在檢視 2 個帖子:1-2 (共 2 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊

  • 當前位於:定製問題
  • 1 條回覆
  • 2 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/29507/#post-29508" title=" 回覆至:如何去掉後臺管理介面的 「關於 wordpress」 的導航選單">6 年、 4 月前</a>