From 75041b6dca5c540b363d0bc1dc021c8b3d9b8df2 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 15 Jun 2017 14:19:05 +0100 Subject: [PATCH] Remove email based actions from order screen --- .../class-wc-meta-box-order-actions.php | 30 +++++-------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php b/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php index 94adb943dae..d9b9533e442 100644 --- a/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php +++ b/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php @@ -31,6 +31,11 @@ class WC_Meta_Box_Order_Actions { if ( ! is_object( $theorder ) ) { $theorder = wc_get_order( $post->ID ); } + + $order_actions = apply_filters( 'woocommerce_order_actions', array( + 'send_order_details' => __( 'Email order details to customer', 'woocommerce' ), + 'regenerate_download_permissions' => __( 'Regenerate download permissions', 'woocommerce' ), + ) ); ?>