This function returns the available WordPress® updates from wordpress.org.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
cache | integer Default: The length of time in seconds to cache the database between requests to wordpress.org. Example: |
force | integer Default: Whether to force a reload from the remote API. Otherwise, the function returns information stored in local cache.
Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
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
}
}