Events Made Easy Forums How do I … Tracking the EME version number

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52711
    Anonymous
    Inactive

    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?

    #52713
    Franky
    Keymaster

    Can’t help you there. Maybe you should ask this at the official wp forum.

    #52714
    Anonymous
    Inactive

    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?

    #52715
    Anonymous
    Inactive

    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.

    #52718
    Franky
    Keymaster

    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 …

    #52720
    Franky
    Keymaster

    Although … you can check the readme.txt file of the plugin, it contains the version number:

    Stable tag: 1.5.2

    #52722
    Anonymous
    Inactive

    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

    #52723
    Franky
    Keymaster

    Thanks for the info!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top