Second custom static field date format
-
Hi,
i want to add a second static field to my csv export. I found on the documentation site this code which works perfectly.
function custom_woo_ce_order_fields( $fields ) { $fields[] = array( 'name' => 'static_field', 'label' => __( 'Customer ID', 'woo_ce' ) ); return $fields; } add_filter( 'woo_ce_order_fields', 'custom_woo_ce_order_fields' ); function custom_woo_ce_order( $order, $order_id ) { $order->static_field = 'AQU'; return $order; } add_filter( 'woo_ce_order', 'custom_woo_ce_order', 10, 2 );now i want to add a second static field with the name “AQU1”. I just copied it and renamed the functions, but it is not appearing. could you please help me out with this?
The second issue is, i changed the date format to “d_m_Y”.
but my exported filename still shows this format: 2016_06_07
Thanks a lot!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Second custom static field date format’ is closed to new replies.