Skip to content

Instantly share code, notes, and snippets.

@J-H-Mojumder
Created May 13, 2022 04:14
Show Gist options
  • Save J-H-Mojumder/7b4b76c7777dd8f1e1d3d93cee4d48b9 to your computer and use it in GitHub Desktop.
Save J-H-Mojumder/7b4b76c7777dd8f1e1d3d93cee4d48b9 to your computer and use it in GitHub Desktop.
Add custom Shipping tracking provider
<?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