WooCommerce Admin Columns
-
Hi,
I want to create a extra Admin Columns row in WooCommerce with the Invoice numbers.
I use this code to create a extra row, it shows the ID Post of a order but i want to change it to the invoice numbers.
function woo_order_extra_columns($columns) { $newcolumns = array( "cb" => "<input type = \"checkbox\" />", "order_ID" => esc_html__('ID', 'woocommerce'), ); $columns = array_merge($newcolumns, $columns); return $columns; } add_filter("manage_edit-shop_order_columns", "woo_order_extra_columns"); function woo_order_extra_columns_content($column) { global $post; $order_id = $post->ID; switch ($column) { case "order_ID": echo $order_id; break; } } add_action("manage_posts_custom_column", "woo_order_extra_columns_content");
I have to get the invoice data to generate the row with only invoice numbes
But what do i need or change to get this to work.Can you help me.
https://www.ads-software.com/plugins/woocommerce-delivery-notes/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WooCommerce Admin Columns’ is closed to new replies.