WooCommerce 3.0 change admin order date column format

I used to use the below code to alter the admin orders view formatting of the order date column. Since WooCommerce 3.0, it stopped working. Any ideas?

// Woocommerce show time on order
add_filter('post_date_column_time', 'custom_post_date_column_time', 10, 2);
function custom_post_date_column_time($h_time, $post)
{
    return get_the_time(__('Y/m/d g:i:s A', 'woocommerce'), $post);
}

Read more here: WooCommerce 3.0 change admin order date column format

Leave a Reply

Your email address will not be published. Required fields are marked *