http_request( 'GET', 'latest/download-link', [], [ 'return_type' => static::HTTP_RETURN_TYPE_ARRAY, 'with_error_data' => true, ] ); if ( is_wp_error( $response ) || empty( $response['downloadLink'] ) ) { return false; } return $response['downloadLink']; } protected function init() {} }