Get latest stable Plugin or Theme download zip URL from wp.org

Plugin Download URL

You can add a download button on your website with the link of latest plugin zip. So, Your users always get the latest zip of your plugin which is hosted on wp.org.

Stable plugin download zip URL is:

https://downloads.wordpress.org/plugin/{plugin-slug}.latest-stable.zip

Note: You need to use the plugin slug for {plugin-slug}.

How to find the plugin slug?

Visit any WordPress plugin page.

E.g. If you visit the plugin page Sample Data.
This page URL is https://wordpress.org/plugins/sample-data/

So, Plugin slug is sample-data
And its latest plugin download link is:
https://downloads.wordpress.org/plugin/sample-data.latest-stable.zip

Note: Plugin name and plugin slug is not always the same.

Another example, If you visit the plugin page Bulk Clean.
This page URL is https://wordpress.org/plugins/easy-clean/

So, Plugin slug is easy-clean
And its latest plugin download link is:
https://downloads.wordpress.org/plugin/easy-clean.latest-stable.zip

Some more plugin examples:

  1. Contact Form 7
    https://downloads.wordpress.org/plugin/contact-form-7.latest-stable.zip
  2. Bulk Clean
    https://downloads.wordpress.org/plugin/easy-clean.latest-stable.zip
  3. Copy Anything to Clipboard
    https://downloads.wordpress.org/plugin/copy-the-code.latest-stable.zip
  4. Free Images
    https://downloads.wordpress.org/plugin/free-images.latest-stable.zip
  5. Sample Data
    https://downloads.wordpress.org/plugin/sample-data.latest-stable.zip
  6. Site Reset
    https://downloads.wordpress.org/plugin/site-reset.latest-stable.zip

Theme Download URL

Same like a plugin, You can add a download button on your website with the link of your latest theme zip. So, Your users always get the latest zip of your theme which is hosted on wp.org.

Stable theme download zip URL is:

https://downloads.wordpress.org/theme/{theme-slug}.latest-stable.zip

Note: You need to use the theme slug for {theme-slug}.

How to find the theme slug?

Same as the plugin, Visit any WordPress theme.

If you visit the theme Bhari
This page URL is https://wordpress.org/themes/bhari/

So, Theme slug is bhari
https://downloads.wordpress.org/theme/bhari.latest-stable.zip

Some more theme examples:

  1. Bhari
    https://downloads.wordpress.org/theme/bhari.latest-stable.zip
  2. Twenty Twelve
    https://downloads.wordpress.org/theme/twentytwelve.latest-stable.zip
  3. Twenty Sixteen
    https://downloads.wordpress.org/theme/twentysixteen.latest-stable.zip
  4. Twenty Seventeen
    https://downloads.wordpress.org/theme/twentyseventeen.latest-stable.zip
  5. Twenty Nineteen
    https://downloads.wordpress.org/theme/twentynineteen.latest-stable.zip