Title: Get plugin version from within plugin
Last modified: August 20, 2016

---

# Get plugin version from within plugin

 *  [kennethav](https://wordpress.org/support/users/kennethav/)
 * (@kennethav)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-plugin-version-from-within-plugin/)
 * 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

Viewing 1 replies (of 1 total)

 *  Thread Starter [kennethav](https://wordpress.org/support/users/kennethav/)
 * (@kennethav)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-plugin-version-from-within-plugin/#post-2447886)
 * Ah, never mind. Just discovered get_plugin_data, which will do the trick.

Viewing 1 replies (of 1 total)

The topic ‘Get plugin version from within plugin’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [kennethav](https://wordpress.org/support/users/kennethav/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/get-plugin-version-from-within-plugin/#post-2447886)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
