Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vishalck/d8bd4c7ffbf93c08c4adb36f8365c716 to your computer and use it in GitHub Desktop.
Save vishalck/d8bd4c7ffbf93c08c4adb36f8365c716 to your computer and use it in GitHub Desktop.
Show Order Delivery Date on WooCOmmerce Orders Page
<?php
// Delivery date & Time in list of orders on WooCommerce Edit Order page in Admin
if ( get_option( 'orddd_show_column_on_orders_page_check' ) == 'on' ) {
add_filter( 'manage_edit-shop_order_columns', array( 'orddd_filter', 'orddd_woocommerce_order_delivery_date_column' ), 20, 1 );
add_action( 'manage_shop_order_posts_custom_column', array( 'orddd_filter', 'orddd_woocommerce_custom_column_value' ), 20, 1 );
add_filter( 'manage_edit-shop_order_sortable_columns', array( 'orddd_filter', 'orddd_woocommerce_custom_column_value_sort' ) );
add_filter( 'request', array( 'orddd_filter', 'orddd_woocommerce_delivery_date_orderby' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment