Forked from mahbubme/dokan-new-shipping-processing-time.php
Created
October 4, 2016 21:43
-
-
Save brunoalvarenga/2d0fc8617c1cbc213944ccf5b3edf12a to your computer and use it in GitHub Desktop.
Increase shipping processing time from seller dashboard for Dokan plugin
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
<?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' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!