[WordPress] 外掛分享: wp-IniFileLoad

前言介紹

  • 這款 WordPress 外掛「wp-IniFileLoad」是 2008-02-28 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2008-04-11,距離現在已有 6236 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

moo2000 |

外掛標籤

inifile common data |

內容簡介

wp-IniFileLoad 是一個簡單的外掛程式。
此外掛程式提供了從 IniFile 中載入 WordPress 所需的公用資料的功能。
結果以關聯陣列形式返回。

IniFile 格式

Ini 檔的結構與 php.ini 相同。
結果以關聯陣列形式返回。(例如: sample01.ini)
區域 "data" 和 "function" 被定義為特殊區域。(例如: sample03.ini)
區域 "data" 以 "data" 鍵存放。(例如: sample01.ini)
您可以在區域名稱中兩個名稱之間放一個空格(除 "function" 之外)。當您撰寫區域名稱時,它會被解析為雙重關聯陣列。(例如: sample02.ini)
當存在帶有值的 lambda 函數的 "function" 區域時,結果會被轉換。(例如: sample03.ini)
除了 "data" 和 "function" 以外的區域會以 "option" 鍵存放。(例如: sample01.ini)

更新紀錄
版本 1.0

2008.02.23
第一個版本。

版本 1.1

2008.03.12
INI 數據具有緩存。我新增了 wp_clear_inidata 和 wp_reload_inifile 函數。

版本 1.1.1

2008.04.11
我將雙重關聯陣列不再限定為 "data" 區域。

原文外掛簡介

wp-IniFileLoad is a simple plug-in.
This plug in offers functions to load necessary common data from IniFile in your WordPress.
The result is returned an associative array for.
IniFile Format

The structure of the ini file is the same as the php.ini’s.
The result is returned an associative array for.(eg. sample01.ini)
Section “data” and “function” are defined as a special section.(eg. sample03.ini)
Section “data” is put in a “data” key.(eg. sample01.ini)
You can put a space between two names in a section name (exclude “function”). When you wrote the section name, it is parsed to a double associative arrays.(eg. sample02.ini)
When there is a “function” section, with a lambda function defined with a value, the result is converted.(eg. sample03.ini)
The section except “data” and “function” is put in an “option” key.(eg. sample01.ini)

History
ver. 1.0
2008.02.23
first version.
ver. 1.1
2008.03.12
INI data came to have cache. And I added function wp_clear_inidata and wp_reload_inifile.
ver. 1.1.1
2008.04.11
I did not limit a double associative array to a “data” section.

各版本下載點

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

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


1.0 | 1.1 | 1.1.1 | trunk |

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

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon