I’m working on an e-commerce site and a lot of customization needs arise.
There are many codes in the child theme. Hundreds of lines… I always have this question in my mind: Is it better to write a new plugin or write code to function.php ?
I have read some studies and articles on the internet about this.
General opinion: The WordPress plugin is a logical decision.
It is said that writing a plugin is better because it can be classified according to the work it does, as well as the possibilities such as updating and deactivating. However, I couldn’t find a definitive explanation, basically on a performance basis. If anyone has knowledge on this subject and can explain it technically, I would appreciate it.