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

前言介紹

  • 這款 WordPress 外掛「Object Oriented Plugin Template Solution」是 2012-11-04 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2016-08-13,距離現在已有 3185 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.3 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

convissor |

外掛標籤

i18n | phpunit | skeleton | template | multisite | translation | settings api | object oriented |

內容簡介

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

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

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

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

解釋

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

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

原文外掛簡介

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

各版本下載點

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

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


最新版本

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

  • WordPress Options 》WordPress Options 是一款針對設計師和開發人員所設計的 WordPress 外掛,可以讓他們極簡化代碼,輕鬆快速地為其 WordPress 產品添加選項,同時為高級開發人...。
  • Settings API 》這個外掛是給開發者使用的,並非一般使用者。, 這是一個主要針對 PHP 開發者所設計的類別,您可以使用它來建立您的佈景主題和外掛選項面板。它是一個封裝了Se...。
  • Register Settings API 》此外掛可讓您在自己的 WordPress 主題或外掛程式中新增設定,只要撰寫陣列即可簡單完成。, 完整說明文件請參考:http://www.wp-load.com/register-settings-a...。

文章
Filter
Apply Filters
Mastodon