內容簡介
仍然是測試版。使用此空白 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 内置的删除功能。这样所有存储的数据都会被删除,不会留下任何孤立的数据。
待做
更多翻译。 有人想要帮忙吗?
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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?
