Home  >  Article  >  Backend Development  >  javascript - For an architecture like wordpress, what is the most reasonable way to carry out secondary development?

javascript - For an architecture like wordpress, what is the most reasonable way to carry out secondary development?

WBOY
WBOYOriginal
2016-08-18 09:15:291052browse

Today I am using WordPress to integrate QQ third-party login. I don’t know how to do it reasonably. Should I put all the secondary development files in the theme? Or write the logic in the root directory file?

Reply content:

Today I am using WordPress to integrate QQ third-party login. I don’t know how to do it reasonably. Should I put all the secondary development files in the theme? Or write the logic in the root directory file?

I dare not say the most reasonable one, but the basic idea is: if it is a modification to the interface, make a theme yourself; if it is a functional modification, make a plugin. It is not advisable to directly change the WordPress source code, because WordPress itself needs to be continuously upgraded.

Specifically regarding your function, when WordPress integrates QQ, I feel it is better to make it a separate plugin and not put it in the theme.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn