简体   繁体   English

WordPress 主题和插件开发

[英]WordPress themes and plugins development

I want to develop WordPress themes and plugins.我想开发 WordPress 主题和插件。 What do I need to know to do this?我需要知道什么才能做到这一点?

I have knowledge of PHP, HTML, CSS and JavaScript.我了解 PHP、HTML、CSS 和 Z686155AF75A60A0F6E9D80C1FZEDD。 I have developed a few projects using these.我已经使用这些开发了一些项目。 What is the best place to start (except Codex), is there any book?最好的起点是什么(Codex 除外),有什么书吗? Where can I know how the core of WordPress works?哪里可以知道WordPress的内核是怎么工作的?

Check out this neat infographic for a good introduction to the anatomy of a wordpress theme.查看这个简洁的信息图,了解 wordpress 主题的解剖结构。

http://yoast.com/wordpress-theme-anatomy/ http://yoast.com/wordpress-theme-anatomy/

For Plugins:对于插件:
There are two places where you can code for plugin in Wordpress.在 Wordpress 中有两个地方可以为插件编写代码。
1. functions.php 1. functions.php
2. Create a folder in plugins folder, inside that folder. 2. 在该文件夹内的插件文件夹中创建一个文件夹。 Create a blank .php file, and code there.创建一个空白的.php文件,并在那里编码。

For Themes:对于主题:
As you asked for learning wordpress themes.正如您要求学习 wordpress 主题。
Go to themes folder, try to get the structure and flow of wordpress default themes. Go 到主题文件夹,尝试获取 wordpress 默认主题的结构和流程。 You've to code within themes folder.您必须在主题文件夹中编写代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM