function get_yuntrack_tracking_info($tracking_number) {
$api_url = “https://api.yuntrack.com/v1/track?number=” . $tracking_number;
$response = wp_remote_get($api_url);
if (is_wp_error($response)) {
return ‘Error retrieving tracking information’;
}
$body = wp_remote_retrieve_body($response);
return json_decode($body);
}