[WordPress] 外掛分享: Simple Plugin Selector

首頁外掛目錄 › Simple Plugin Selector
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
448 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.4+ v2.0.0 上架:2020-09-09

內容簡介

預設情況下,WordPress 會在每個頁面載入所有的外掛。SPS 允許網站管理員根據每個頁面進行選擇性啟用外掛,避免載入不需要的外掛支援檔案而影響網頁載入速度。這樣可以減少 HTTP 請求和下載大小,從而提高訪問者瀏覽網站的效率。

例如,可能只在聯絡我們頁面使用聯絡表單外掛,此時 SPS 允許您在訪問其它頁面時停用該插件,以避免不必要地下載聯絡表單樣式表和腳本。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.0) 或搜尋安裝

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

原文外掛簡介

By default, WordPress will load every plugin on every page. The Simple Plugin Selector (SPS) plugin allows the administrator to select which plugins are used on a page-by-page basis. This prevents unneeded plugins and plugin support files from loading. HTTP requests and download size will be reduced, so improving website performance for the visitor.
For example, you probably use your contact form plugin only on your Contact Us page. SPS allows you to deactivate it when the page request is for one of your other pages, so your users don’t download your contact form style sheets and scripts unnecessarily.
The plugin has a user-friendly interface, so the administrator can see easily which plugins are running on each page.
Plugin filtering is disabled in admin context.
Not for newbies! The administrator must have a clear grasp of which plugins are required for each page, otherwise some pages will have errors because a required plugin is not loaded.
Deactivating
Deactivating SPS in the normal plugins list will deactivate plugin filtering and remove the SPS file from the mu-plugins directory.
Removing the SPS plugin using FTP will leave an unwanted SPS file in mu-plugins, but plugin filtering will be disabled.
SPS settings are not deleted by plugin deactivation or deletion. Reactivating should pickup filtering where it left off.
Settings
Go to Dashboard > Settings > Simple Plugin Selector to set which plugins are required on a page by page basis. If the site has cache or optimize plugins, they should be cleared after changing any SPS settings.
If a new page, post or product is created, all plugins will be activated for that by default until set otherwise in SPS settings.
If a new plugin is activated, it will be loaded for all pages by default until set otherwise in SPS settings.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon