Get plugin version in frontend
-
Hello,
I’m developing a woocommerce (WC) theme and need to do some modifications for the upcoming version 2.3. As I’m selling the theme I don’t know which version of WC my customers are using but I need to know because I must apply the changes for the 2.3+ version only.
I’ve found the get_plugin_data() function to determine the plugin version but unfortunately it’s working in the backend only. Even when I include the wp-admin/includes/plugin.php in the frontend it’s not working.
Are there any other ways I didn’t thought of so far?
Thanks!
CI
- The topic ‘Get plugin version in frontend’ is closed to new replies.