Last active
April 20, 2020 03:56
-
-
Save robertdevore/a1a34bf1870967ba567e461e53f216de to your computer and use it in GitHub Desktop.
Customize the date output in the Delivery Times for WooCommerce
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 | |
/** | |
* Delivery Times for WooCommerce | |
* | |
* Change the date format (default: M j, Y) | |
* | |
* @link https://wordpress.org/plugins/delivery-times-for-woocommerce/ | |
* @return string | |
*/ | |
function acme_date_format( $format ) { | |
$format = 'm/d/y'; | |
return $format; | |
} | |
add_filter( 'dtwc_date_format', 'acme_date_format' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment