This function returns the available WordPress® updates from wordpress.org.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
uapi --output=jsonpretty \ --user=username \ WordPressInstanceManager \ get_latest_wordpress_version_from_wordpress_org
{- "apiversion": 3,
- "func": "get_latest_wordpress_version_from_wordpress_org",
- "module": "WordPressInstanceManager",
- "result": {
- "data": {
- "offers": [
- {
- "current": null,
- "download": null,
- "locale": null,
- "mysql_version": null,
- "new_bundled": null,
- "packages": {
- "full": null,
- "new_bundled": null,
- "no_content": null,
- "partial": null,
- "rollback": null
}, - "partial_version": null,
- "php_version": null,
- "response": null,
- "version": null
}
], - "translations": [
- "string"
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}