I wrote a small function which displays a quote on the page, whenever the function is being called somewhere in a template. Since nobody likes the same quote, I created an admin page for it, where one can change the quote and a few more settings.
Now I want to use this functions.php for several more themes, espescially because it has lots of usefull functions. This quote is not used in every theme. So I want to avoid that people find this quote option in the WP backend, while it is not supported in the templates. So I'm looking for something which does:
if (function "quotes" is used in any template of this theme) {
Show-admin_page;
}
Of course I could put it in a plugin, but I prefer to keep it in my functions, since I don't want to check everytime whether the plugin is needed or not, and I don't want to write 'plugin depended' templates.