[WordPress] 外掛分享: WP_Registry

首頁外掛目錄 › WP_Registry
全新外掛
安裝啟用
尚無評分
5935 天前
最後更新
問題解決
WordPress 2.8+ v0.1 上架:2009-12-05

內容簡介

此外掛提供一個全域可用的容器,用來儲存任何類型的值。Registry 為單例模式,您可以這樣在 Registry 內設定值:

WP_Registry::set( 'key', $value )

然後您可以隨時這樣檢索值:

WP_Registry::get( 'key' )

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

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

原文外掛簡介

The plugin provides a globally accessible container for storing values of any kind. The Registry is a singleton and you can set values inside the registry like this:
WP_Registry::set( 'key', $value )
which can then be retrieved at any time like this:
WP_Registry::get( 'key' )

延伸相關外掛

文章
Filter
Mastodon