Skip to content

Instantly share code, notes, and snippets.

@rajeshsingh520
Created February 27, 2026 01:24
Show Gist options
  • Select an option

  • Save rajeshsingh520/cb4bbd37c2b3315891fc549052b73ee6 to your computer and use it in GitHub Desktop.

Select an option

Save rajeshsingh520/cb4bbd37c2b3315891fc549052b73ee6 to your computer and use it in GitHub Desktop.
add_filter('pisol_dtt_order_table_delivery_method', function($order_delivery_type, $delivery_method){
$mark = '<mark class="order-status status-%s"><span>%s</span></mark>';
if($delivery_method === 'pickup'){
$label = 'Pickup';
return sprintf($mark, 'processing', $label);
}elseif($delivery_method === 'delivery'){
$label = 'Delivery';
return sprintf($mark, 'completed', $label);
}else{
return '';
}
}, 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment