If you're in the web business, it' likely you have something to do with WordPress. The shortcode function on this page serves to provide a download link to the current version of the package. It's not intended as an alternative to the WordPress website, or as an alternative to the inbuilt update features. We use it on our own reference page as a means to provide a quick reference for our own fresh installs.
We utilize the WordPress API as described on the WP Codex page. The result is cached locally for 12 hours to avoid repeated requests.
To display the download link only, use
[bmwordpress]. The result:
Download Current Version [ Download ] (V5.7.2)
We would like access to the Australian locale so we use
[bmwordpress locale="en_AU"]. The result:
Copy and paste the WordPress function into your theme's
functions.php file or, if you sensibly have one installed, your custom functions plugin. You may optionally download and install our plugin from the bottom of of the page.
Used outside of WordPress, the following may be used. Usage requires Simple Cache.
- If you use a locale, ensure you copy it in the correct format (
- Alter the text to return your desired text. We coded it to best suit our needs... and it may not be consistent with yours.
- Include the required PHP and MySQL version into your text with
- If you supply a locale, ensure it's correct. If invalid, the response will only return an error.