Created
February 27, 2026 01:24
-
-
Save rajeshsingh520/cb4bbd37c2b3315891fc549052b73ee6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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