- This topic has 7 replies, 2 voices, and was last updated 10 years, 3 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Tracking the EME version number
Tagged: version
I need to run some custom code every time that I update EME to a new version. What’s the best way to get the EME version number for comparison?
Can’t help you there. Maybe you should ask this at the official wp forum.
I think you misunderstood me. I want to find (via PHP) the version number for your plugin, Events Made Easy. I’m guessing it’s stored in WP’s options somewhere. Looking under the hood in the plugin code, I found reference to an option named “eme_version”, but if I’m reading the code correctly, that’s the database version. I’d like to track the plugin version. How can I find that?
Isn’t the version number something that you store in the WordPress settings yourself? Or am I misunderstanding the process, and it’s stored by WP without your intervention? I’m still learning how plugins interact with the WP core.
Indeed, I don’t store that version myself. The eme_version is something for myself, not something wp uses to check the version. I think they check the version in the readme.txt …
Although … you can check the readme.txt file of the plugin, it contains the version number:
Stable tag: 1.5.2
After some digging, I found that WP provides easy access to lots of details about installed plugins:
http://codex.wordpress.org/Function_Reference/get_plugin_data
Thanks for the info!