M
M
mr_firuzinho2016-03-18 13:11:23
CMS
mr_firuzinho, 2016-03-18 13:11:23

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

1 answer(s)
I
Ivan Kozlov, 2016-03-18
@trampick

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 question

Ask a Question

731 491 924 answers to any question