如何发布插件或模板到 WordPress 官方网站

发布Worepress插件前你需要阅读常见问题和指引。
Before you submit your plugin, we ask you to review our Guidelines and read the Frequently Asked Questions. A brief selections of common questions are listed below the form.

如何你还没有WP账号,需要先注册,接下来就是 Add Your Plugin

https://wordpress.org/plugins/developers/add/

发布成功的提示:

Thank you for uploading OBD BigData to the WordPress Plugin Directory.

接下来就是耐心等待,查阅指南.

//————-审核可能没有通过—————————————-

An easy mantra here is this:

Sanitize early
Escape Late
Always Validate

一、本地化逃逸(Escaping with Localization):
有许多选项可以保护所有类型的内容(html、电子邮件等)。是的,即使是 HTML 也需要正确转义。

https://developer.wordpress.org/plugins/security/securing-output/

https://developer.wordpress.org/plugins/security/securing-input/

https://developer.wordpress.org/plugins/security/securing-output/

# 与使用echo输出数据不同,通常使用WordPress本地化函数,如_e()或__()。
esc_html_e( 'Hello World', 'text_domain' );
// Same as
echo esc_html( __( 'Hello World', 'text_domain' ) );

转载请注明出处:https://www.onexin.net/add-your-plugin-to-wordpress/

相关文章:

1、WordPress更换网站域名
https://www.onexin.net/wordpress-change-domain/

2、WordPress中mo和po文件编辑与转换
https://www.onexin.net/wordpress-mo-and-po-file-editing-and-conversion/

3、Wordpress自带Widget在模板中调用最新评论
https://www.onexin.net/wordpress-widget-comes-with-the-latest-comments-in-the-template-call/

4、Gravatar头像打开速度很慢,解决办法
https://www.onexin.net/gravatar-picture-is-slow-to-open-the-solution/

5、TinyMCE Syntaxhighlighter Plugin for Wordpress
https://www.onexin.net/tinymce-syntaxhighlighter-plugin-for-wordpress/

Leave a Reply