[WordPress] 外掛分享: EPT Empty Plugin Template

首頁外掛目錄 › EPT Empty Plugin Template
10+
安裝啟用
尚無評分
5495 天前
最後更新
問題解決
WordPress 2.8+ v0.1.1.2 上架:2011-02-16

內容簡介

仍然是測試版。使用此空白 wordpress 外掛範本來建立您自己的外掛。

參考 https://codex.wordpress.org/Writing_a_Plugin、https://codex.wordpress.org/Creating_Options_Pages 及 http://planetozh.com/blog/2009/09/top-10-most-common-coding-mistakes-in-wordpress-plugins/ 中提供的所有建議。

重點將有自己的頁面來說明。

包括:

多語言能力
卸載例程
數據刪除例程(避免孤立的數據)
編程建議
安全方面(驗證用戶輸入、非ces)
外部第三方東西(Ajax、CSS、Javascript)
短碼
WordPress 调度程序("cronjob")
日志文件
權限

刪除外掛

通过 WordPress 中的 "Plugins" 菜单停用外掛
通过 WordPress 中的 "Plugins" 菜单删除外掛

最好使用 WordPress 内置的删除功能。这样所有存储的数据都会被删除,不会留下任何孤立的数据。

待做

更多翻译。 有人想要帮忙吗?

外掛標籤

開發者團隊

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

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

原文外掛簡介

STILL BETA Use this emtpy wordpress plugin template to build your own.
Considering all the advices given in https://codex.wordpress.org/Writing_a_Plugin, https://codex.wordpress.org/Creating_Options_Pages and http://planetozh.com/blog/2009/09/top-10-most-common-coding-mistakes-in-wordpress-plugins/
Every important point will have it’s own page to explain.
Including:

multi language ability
uninstall routine
data delete routine (avoid orphaned data)
coding advices
security aspects (validating user inputs, nonces)
external third party stuff (Ajax, CSS, Javascript)
shortcode
WordPress scheduler (“cronjob”)
logfiles
capabilities

Remove plugin

Deactivate plugin through the ‘Plugins’ menu in WordPress
Delete plugin through the ‘Plugins’ menu in WordPress

It’s best to use the build in delete function of wordpress. That way all the stored data will be removed and no orphaned data will stay.
To do
More translations. Does someone wants to help?

延伸相關外掛

文章
Filter
Apply Filters
Mastodon