Tag Info

New answers tagged

1

to link plugin and theme, I recommend you to use hooks. In the theme, you create a new hook with do_action("under_the_picture");. And in the plugin you make a hook like this : add_action("under_the_picture", function () { echo "plugin data to display under the picture"; }); then when the plugin is not activated, the theme place "under_the_picture" is ...


0

A plugin is a PHP include in its most elementary sense. You cannot call a function if it's not registered in PHP. If a plugin is not activated, it is therefore not included, and the function is unknown. You cannot call it. I would recommend that you use this as a must-use plugin so that it's availability is consistent and predictable.



Top 50 recent answers are included