Home >Backend Development >PHP Tutorial >javascript - For an architecture like wordpress, what is the most reasonable way to carry out secondary development?
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?
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.