Created
January 28, 2018 07:24
-
-
Save trueqap/60a8776c7cd1713d4b4412f3a1fdc6bc to your computer and use it in GitHub Desktop.
Modify the WooCommerce order date column with time (date + time)
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 | |
//https://woopress.hu/forumok/tema/rende/ | |
function woocommerce_add_order_page_date_and_time($h_time) | |
{ | |
return get_the_time(__('Y/m/d G:i', 'woocommerce')); | |
} | |
add_filter('woocommerce_admin_order_date_format', 'woocommerce_add_order_page_date_and_time'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment