Answer the question
In order to leave comments, you need to log in
How to make a function global in wordpress?
In my opinion, I did not put it correctly, but still how to do it, for example, there is a func1 function, it works on the site, but when you call it, for example, in the plugin code, it does not work at all. That's why it needs to be made so that it works, for example, in the plugin code
Answer the question
In order to leave comments, you need to log in
Functions that are located in the function.php file in the theme template are available in the plugin. Also, the functions that are used in the plugin are available in another plugin. But again, depending on how to declare them and all that. Just write in function.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question