Created
May 13, 2022 04:14
-
-
Save J-H-Mojumder/7b4b76c7777dd8f1e1d3d93cee4d48b9 to your computer and use it in GitHub Desktop.
Add custom Shipping tracking provider
This file contains 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
<?php | |
add_filter( 'dokan_shipping_status_tracking_providers_list', 'add_shipping_tracking_provider' ); | |
function add_shipping_tracking_provider( $providers ){ | |
$providers['sp-your-custom-name'] = array( //use a custom name instead of sp-your-custom-name as your wish | |
'label' => __( 'Your custom one', 'dokan' ), //This text will be shown in the backend and frontend | |
'url' => '', | |
); | |
return $providers; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment