Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 2.24 KB

README.md

File metadata and controls

31 lines (26 loc) · 2.24 KB

Mozilla Latest Version

Mozilla Latest Version WordPress plugin automatically checks the Mozilla application JSONs published from https://github.com/mozilla-releng/product-details, so you can always have the latest download link and version number on your website.

Settings

The plugin settings you can find in WordPress Admin -> Options -> MOZLV Settings.

  • Cache type: You can choose from two options. WordPress Transients API cache uses database to store the informations about the application version, or Files.
  • Cache expiration: This option sets the cache expiration in seconds (default 3600 = 1 hour).
  • Link language code: Here you can specify the language code for your download and other links. More information about the codes you can find in this Mozilla Wiki page.

How to use it?

There are four shortcodes added by this plugin.

  • [mozilla-latest-version product=product] - the latest version number of the specified product
  • [mozilla-latest-download-url product=product platform=platform] - download URL of the latest version of the specified product for platform
  • [mozilla-latest-langpack-url product=product] - download URL of the latest langpack (.xpi) for the specified product and platform (only available for desktop products)
  • [mozilla-latest-changelog-url product=product] - changelog page URL for the latest version of the specified product
  • [mozilla-latest-requirements-url product=product] - requirements page URL for the latest version of the specified product

Attributes

  • product: firefox (Firefox for desktop), firefox-android/mobile/fenix/fennec, firefox-ios/ios, focus-android, focus-ios, thunderbird and seamonkey
  • platform: win, win64, win64arm, msstore, linux, linux64, flatpak, snap, macos
  • channel specifies the channel of product are is product dependent (if no specified, release will be used)

Channel

  • Firefox for Desktop: release, beta, devedition, nightly, esr
  • Firefox for Android: release, beta, nightly
  • Firefox for iOS: release, beta
  • Focus for Android: release, beta
  • Focus for iOS: release, beta
  • Thundebird: release, beta
  • SeaMonkey: release, beta