Skip to content

Instantly share code, notes, and snippets.

@trueqap
Created January 28, 2018 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trueqap/60a8776c7cd1713d4b4412f3a1fdc6bc to your computer and use it in GitHub Desktop.
Save trueqap/60a8776c7cd1713d4b4412f3a1fdc6bc to your computer and use it in GitHub Desktop.
Modify the WooCommerce order date column with time (date + time)
<?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