[WordPress] 外掛分享: Customize Widgets Plus

前言介紹

  • 這款 WordPress 外掛「Customize Widgets Plus」是 2015-05-10 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2015-06-03,距離現在已有 3624 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

westonruter |

外掛標籤

widgets | customize | customizer |

內容簡介

此外掛包含實驗性功能,以及用於小工具和自訂選項的改進測試平台。

需要 PHP 5.3+。

此外掛的開發是在 GitHub 上進行的。歡迎提交拉取請求。在前往外掛論壇之前,請查看在 GitHub 上報告的問題。

目前的功能:

非自動加載的小工具選項

小工具通常存儲在選項中。多小工具將它們的所有實例存儲在一個特定類型的大的序列化數組中。當有大量特定類型的小工具時,序列化數組的大小可能會很大。此外,WP_Widget 在調用 update_option() 之前並未明確執行 add_option(... 'no' ),因此所有設置都將與自動加載一起添加。在使用 Memcached 對象緩存時,這非常糟糕,具體原因是可以導致總 alloptions 緩存鍵變得大於 1MB,從而導致 Memcached 無法將值存儲在緩存中。在 WordPress.com 上的結果是一個 “Matt's fault” 錯誤,需要 VIP 團隊修復。不應將小工具設置存儲在序列化數組中。每個小工具實例都應存儲在自定義文章類型中。但在完成這項工作之前,我們應停止自動加載選項。參見 #26876 和 #23909。

小工具編號增加

實現 Core 問題的修復 #32183(小工具 ID 自動增量衝突對於同時使用的用戶)。存儲的 widget_number 選項為每次實例化小工具提供了一個集中式的自動增量編號,即使是尚未保存的 Customizer 中的小工具也是如此。

高效的多維度設置過濾

Core 中多維度選項和 theme_mods 的設置非常低效,因為註冊為 option 或 theme_mod 子集的所有 Customizer 設置都需要添加到整個值的過濾器中,這意味著對一個單獨的設置進行過濾器操作將導致該 option/theme_mod 中所有其他設置的所有過濾器也得到應用。此功能旨在最大程度地改善這一點,特別是對最糟糕的小工具進行改進。實現了對 #32103 的部分修復。

HTTPS 資源代理

當啟用 FORCE_SSL_ADMIN(例如在 WordPress.com 上)時,Customizer 也會使用 HTTPS 將網站加載到預覽 iframe 中。但是,如果引用的是未使用 HTTPS 的外部資源,則由於瀏覽器的安全模型會引發混合內容警告,因此將無法加載。此功能將嘗試通過基於 WordPress 的代理將任何 HTTP URL 重寫為 HTTPS URL。

小工具帖子

將小工具實例存儲在帖子中而不是選項中。由於提交的 #32474 修補程序,在樹幹中需要進行更改。即將推出更多詳細信息...

原文外掛簡介

This plugin consists of lab features and a testbed for improvements to Widgets and the Customizer.
Requires PHP 5.3+.
Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.
Current features:
Non-Autoloaded Widget Options
Widgets are stored in options (normally). Multi-widgets store all of their instances in one big serialized array specific to that type. When there are many widgets of a given type, the size of the serialized array can grow very large. What’s more is that WP_Widget does not explicitly add_option(... 'no' ) before calling update_option(), and so all of the settings get added with autoloading. This is very bad when using Memcached Object Cache specifically because it can result in the total alloptions cache key to become larger than 1MB and result in Memcached failing to store the value in the cache. On WordPress.com the result is a “Matt’s fault” error which has to be fixed by the VIP team. Widget settings should not be stored in serialized arrays to begin with; each widget instance should be stored in a custom post type. But until this is done we should stop autoloading options. See also #26876 and #23909.
Widget Number Incrementing
Implements fixes for Core issue #32183 (Widget ID auto-increments conflict for concurrent users). The stored widget_number option provides a centralized auto-increment number for whenever a widget is instantiated, even widgets in the Customizer that are not yet saved.
Efficient Multidimensional Setting Sanitizing
Settings for multidimensional options and theme_mods are extremely inefficient to sanitize in Core because all of the Customizer settings registered for the subsets of the option or theme_mod need filters that are added to the entire value, meaning sanitizing one single setting will result in all filters for all other settings in that option/theme_mod will also get applied. This functionality seeks to improve this as much as possible, especially for widgets which are the worst offenders. Implements partial fix for #32103.
HTTPS Resource Proxy
When FORCE_SSL_ADMIN is enabled (such as on WordPress.com), the Customizer will load the site into the preview iframe using HTTPS as well. If, however, external resources are being referenced which are not HTTPS, they will fail to load due to the browser’s security model raise mixed content warnings. This functionality will attempt to rewrite any HTTP URLs to be HTTPS ones via a WordPress-based proxy.
Widget Posts
Store widget instances in posts instead of options. Requires trunk due to patch committed in #32474. More details forthcoming…

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Customize Widgets Plus」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2 |

延伸相關外掛(你可能也想知道)

  • One Click Demo Import 》這個外掛的最佳功能在於主題作者可以在他們的主題中定義導入文件,所以所有使用該主題的用戶只需點擊「導入演示數據」按鈕即可。, , 你是主題作者嗎?, 為你...。
  • Premium Addons for Elementor 》使用超過60個高度可自訂的外掛和小工具以及400多個預製範本,讓你能夠無需編碼更快地建立複雜的網站,提升你的Elementor頁面建構器的能力。Elementor和Premiu...。
  • Ocean Extra 》mplates IMPORT, With Ocean Extra, you get access to a wide range of both free and premium website templates to import to your website with a single...。
  • SiteOrigin Widgets Bundle 》rdPress website since 2013. Our Widgets Bundle is actively developed and regularly updated to ensure compatibility with the latest WordPress update...。
  • Jeg Elementor Kit 》這是為了 Elementor 頁面建構器所設計的額外小工具,它包含 40 種高度可自訂的小工具。, 必要小工具, 我們提供小工具,您可以按照自己的需求進行自訂。, , 手...。
  • Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
  • WooSidebars 》使用 WooSidebars,您可以根據情境(例如特定頁面、特定博客文章、某些類別或搜尋結果屏幕)更改顯示在側邊欄(小部件區域)中的小部件。設置顯示在多個條件...。
  • Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
  • Unyson 》, 您覺得這款外掛有幫助嗎?請考慮給它一個五星評價。, , Unyson - 一個免費的拖放框架,附帶許多內建的擴充功能,可以協助您輕鬆快速地開發高級主題。, 贊助...。
  • Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
  • Widget CSS Classes 》Widget CSS Classes 可以讓您給 WordPress Widget 添加自定義的 class 和 id, 請注意,此外掛並不支援輸入自定義的 CSS。您需要修改主題的 style.css,或加入...。
  • Lightweight Sidebar Manager 》通常您會在網站上看到一個側邊欄,但有時需要在特定頁面上顯示相關的不同側邊欄。例如,在 WooCommerce 頁面上,顯示相關或熱門產品的側邊欄比最新評論或博客...。
  • Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
  • Widget Context 》使用 Widget Context 外掛在網站的特定部分 (如首頁、文章、頁面、檔案、搜尋等) 中顯示或隱藏小工具。該外掛可支援使用 URL 定位來達到最大的彈性。, , 高級...。
  • UiCore Elements – Free Elementor widgets and templates 》```html, , , , ,

    UiCore Elements 外掛總結:

    ,

    UiCore Elements 是一個多功...。

文章
Filter
Apply Filters
Mastodon