Getting version number of latest WordPress release
WordPress.org offers an api that includes a version checker. That version checker can return a json response (or a serialized string if that’s your thing). Example usage $url=”https://api.wordpress.org/core/version-check/1.7/”; $response = wp_remote_get($url); $json = $response[‘body’]; $obj = json_decode($json); The resulting $obj will contain an offers array, whose first element is an object that contains the information … Read more