I am working for a client right now that is wanting me to author a wordpress plugin for them, and on top of that they want me to integrate it into their template as a feature. However since the url of the location of the plugin could change I want to be able to call the loaded plugin from the template, however I am not finding any good way to do so. I have read over WordPress Codex and not found a function that suits what I need, or I simply don’t understand what they are doing. I am not familiar with how WordPress loads and uses plugins. Thanks!
Share
WordPress has a built in function to find the path to your plugin, similar to this:
I believe that is what you are asking, no? Or are you referring to sending a function from the plugin to the template? In that case, you have to use an action hook. Here is the reference: Link