Forums

Get plugin version from within plugin (2 posts)

  1. kennethav
    Member
    Posted 5 months ago #

    Can my plugin get its version number?

    The version number is specified in the plugin header comment and I'd like to send it along with a call to a web service so that the service knows how to return the right value based on the plugin version.

    Is there some way for a plugin to know its version number? I don't want to have to hard-code that version number in the header comment as well as elsewhere in the code.

    Thanks!
    Ken

  2. kennethav
    Member
    Posted 5 months ago #

    Ah, never mind. Just discovered get_plugin_data, which will do the trick.

Reply

You must log in to post.

About this Topic