Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brunoalvarenga/2d0fc8617c1cbc213944ccf5b3edf12a to your computer and use it in GitHub Desktop.
Save brunoalvarenga/2d0fc8617c1cbc213944ccf5b3edf12a to your computer and use it in GitHub Desktop.
Increase shipping processing time from seller dashboard for Dokan plugin
<?php
function dokan_new_shipping_processing_times() {
$times = array(
'' => __( 'Ready to ship in...', 'dokan' ),
'1' => __( '1 business day', 'dokan' ),
'2' => __( '1-2 business day', 'dokan' ),
'3' => __( '1-3 business day', 'dokan' ),
'4' => __( '3-5 business day', 'dokan' ),
'5' => __( '1-2 weeks', 'dokan' ),
'6' => __( '2-3 weeks', 'dokan' ),
'7' => __( '3-4 weeks', 'dokan' ),
'8' => __( '4-6 weeks', 'dokan' ),
'9' => __( '6-8 weeks', 'dokan' ),
'10' => __( '8-10 weeks', 'dokan' ),
'11' => __( '2-3 months', 'dokan' ),
);
return $times;
}
add_filter( 'dokan_shipping_processing_times', 'dokan_new_shipping_processing_times' );
?>
@hamid-hassani
Copy link

Hi, Very nice , But do you have any idea to how show override process time in admin ? ( i mean in product page in WooCommerce admin) or everywhere in admin.
This process time how can be useful when admin dosen't know that ?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment