How to rename the tracking widget tab labels

If you want to change the Tracking page Tracking progress tab label name, you can add the following code snippet in your theme’s function.php.

// change Tracking page Tracking progress tab label name
add_filter( 'tracking_page_tab_label', 'rename_tracking_progress_tab_label' );
function rename_tracking_progress_tab_label( $labels_name ) {

	// if wou want to change the name of the Tracking progress tab label
	$labels_name['tracking_progress_label'] = 'Tracker progress';

	return $labels_name;
}

If you want to change the Tracking page Products tab label name, you can add the following code snippet in your theme’s function.php.

// change Tracking page Products tab label name
add_filter( 'tracking_page_tab_label', 'rename_products_tab_label' );
function rename_products_tab_label( $labels_name ) {

	// if wou want to change the name of the Products tab label
	$labels_name['items_label'] = 'Products in this Shipment';

	return $labels_name;
}

If you want to change the Tracking page Notifications tab label name, you can add the following code snippet in your theme’s function.php.

// change Tracking page Notifications tab label name
add_filter( 'tracking_page_tab_label', 'rename_notifications_tab_label' );
function rename_notifications_tab_label( $labels_name ) {

	// if wou want to change the name of the Notifications tab label
	$labels_name['notifications_label'] = 'Shipment status notifications';

	return $labels_name;
}