[WordPress] 外掛分享: Object Oriented Plugin Template Solution

首頁外掛目錄 › Object Oriented Plugin Template Solution
全新外掛
安裝啟用
★★★★★
5/5 分(2 則評價)
3505 天前
最後更新
問題解決
WordPress 3.3+ v1.1.2 上架:2012-11-04

內容簡介

提供一個經過精心設計的 WordPress 外掛範本,讓新的外掛作者有助於創建一個優秀且易於維護的外掛。現有的外掛作者可提取個別組件和概念,以移植到自己的專案中。

乾淨的面向對象設計
PHPUnit 測試
管理畫面使用設定 API
多站點支援
啟用時建立表格
停用時刪除表格和設定
使用 WordPress 的 i18n,並提供腳本以生成 gettext 文件
安裝說明有更名文件、類別和 ID 的腳本

有關此外掛的詳細功能,請參閱 FAQ 部分。

這個外掛範本的開發在 GitHub 進行。請提交 錯誤和功能請求,拉取請求,Wiki 條目。然後,釋出版本都會被壓縮並推送到 WordPress 的 Plugins SVN 儲存庫。這種分支是必要的,因為受到「Plugins SVN 儲存庫是釋出系統,而不是開發系統」的警告。

解釋

如果您想了解這個「外掛」的工作原理,請參閱我部落格上關於「WordPress 外掛的 PHPUnit 測試系列」。

全局變量
wp_mail()
wp_redirect() 和預期的 PHP 錯誤
自動增量 ID 記錄

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Object Oriented Plugin Template Solution」→ 直接安裝(推薦)

原文外掛簡介

Gives authors of new plugins a leg up on creating a great, easy to maintain plugin by providing a carefully designed plugin skeleton to build on. Authors of existing plugins can extract individual components and concepts for transplantation into their own projects.

Clean, object-oriented design
PHPUnit tests
Admin screen uses the Settings API
Multisite support
Creates a table during activation
Drops the table and settings during deactivation
Uses WordPress’ i18n and provides scripts for generating the gettext files
Installation instructions have a script for renaming files, classes and IDs

See the FAQ section for more details about this plugin’s features.
Development of this plugin template happens on GitHub. Please submit bug and feature requests, pull requests, wiki entries
there. Releases are then squashed and pushed to WordPress’ Plugins SVN repository. This division is necessary due having being chastised that “the Plugins SVN repository is a release system, not a development system.”
Explanations
If you want an explanation of how this “plugin” works, please see the “PHPUnit Tests for WordPress Plugins” series on my blog.

Global Variables
wp_mail()
wp_redirect() and Expected PHP Errors
Auto-increment ID Records

延伸相關外掛

文章
Filter
Apply Filters
Mastodon