How to change the WooCommerce admin order date format in the order date column
add_filter( 'woocommerce_admin_order_date_format', 'custom_post_date_column_time' ); function custom_post_date_column_time( $format ) { return __( 'Y-m-d H:i:s A', 'woocommerce' ); }
Was this helpful? Please buy me a coffee
This code should be added to your child theme’s
functions.php
file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php
file as this will be wiped entirely when you update.