Call to undefined function `get_plugin_data()`
I have a class inside a file that i include_once()
from the functions.php of my theme. The class can be used as stand alone plugin, or integrated in a theme.
Inside the class i want to fill a class variable (inside the __construct()
function) with the native wordpress function get_plugin_data()
. Fun as it is, i get the following error:
Call to undefined function
get_plugin_data()
Am I asking for the plugin data too late, or what else might be my problem?
Thanks!
Topic get-plugin-data Wordpress
Category Web