[WordPress] 外掛分享: Widget Disable

首頁外掛目錄 › Widget Disable
WordPress 外掛 Widget Disable 的封面圖片
10,000+
安裝啟用
★★★★
4.8/5 分(24 則評價)
485 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v3.0.1 上架:2015-04-22

內容簡介

這個簡單的外掛程式允許您在當前的 WordPress 網站中禁用任何側邊欄和儀表板小工具。它提供了一個簡單的用戶界面,可以提供給具有edit_theme_options權限(通常是管理員角色)的使用者,在「外觀」-> 「禁用小工具」下使用。
保存設置後,側邊欄和儀表板小工具將被刪除,使用者將看不到這些小工具。

開發人員?了解掛鉤

查看我們提供的過濾器:

wp_widget_disable_default_sidebar_widgets – 允許您排除某些側邊欄小工具不被禁用。
wp_widget_disable_default_dashboard_widgets – 允許您排除某些儀表板小工具不被禁用。

貢獻

如果您想為這個外掛程式做出貢獻、報告問題或其他事項,請注意我們在GitHub上開發這個外掛程式。

由 required 開發

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Widget Disable」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This simple plugin allows you to disable any sidebar and dashboard widget for the current WordPress site you are on. It provides a simple user interface available to users with edit_theme_options capabilities (usually Administrator role) available under Appearance -> Disable Widgets.
After saving the settings, the sidebar and dashboard widgets are removed from and the user can’t see those widgets anymore.
Developer? Get to know the hooks
Have a look at the filters we provide:

wp_widget_disable_default_sidebar_widgets – Allows you to exclude certain sidebar widgets from being disabled.
wp_widget_disable_default_dashboard_widgets – Allows you to exclude certain dashboard widgets from being disabled.

Contributions
If you would like to contribute to this plugin, report an issue or anything like that, please note that we develop this plugin on GitHub.
Developed by required

延伸相關外掛

文章
Filter
Apply Filters
Mastodon