diff --git a/includes/class-wc-order-factory.php b/includes/class-wc-order-factory.php index 6a38ffd6c2d..db43ad596ba 100644 --- a/includes/class-wc-order-factory.php +++ b/includes/class-wc-order-factory.php @@ -97,7 +97,7 @@ class WC_Order_Factory { * Get the order ID depending on what was passed. * * @since 2.7.0 - * @param mixed $product + * @param mixed $order * @return int|bool false on failure */ private static function get_order_id( $order ) { diff --git a/includes/data-stores/abstract-wc-order-data-store-cpt.php b/includes/data-stores/abstract-wc-order-data-store-cpt.php index 304a17b6445..3dc2c3eeb70 100644 --- a/includes/data-stores/abstract-wc-order-data-store-cpt.php +++ b/includes/data-stores/abstract-wc-order-data-store-cpt.php @@ -109,7 +109,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_CPT implem wp_trash_post( $id ); $order->set_status( 'trash' ); } - do_action( 'woocommerce_delete_' . $post_type, $id ); + do_action( 'woocommerce_delete_order', $id ); } /* diff --git a/includes/data-stores/interfaces/wc-order-data-store-interface.php b/includes/data-stores/interfaces/wc-order-data-store-interface.php index c7c0478762a..578e11cb5b1 100644 --- a/includes/data-stores/interfaces/wc-order-data-store-interface.php +++ b/includes/data-stores/interfaces/wc-order-data-store-interface.php @@ -13,40 +13,6 @@ if ( ! defined( 'ABSPATH' ) ) { * @author WooThemes */ interface WC_Order_Data_Store_Interface { - - /** - * Read order items of a specific type from the database for this order. - * - * @param WC_Order $order - * @param string $type - * @return array - */ - public function read_items( $order, $type ); - - /** - * Remove all line items (products, coupons, shipping, taxes) from the order. - * - * @param WC_Order - * @param string $type Order item type. Default null. - */ - public function delete_items( $order, $type = null ); - - /** - * Get token ids for an order. - * - * @param WC_Order - * @return array - */ - public function get_payment_token_ids( $order ); - - /** - * Update token ids for an order. - * - * @param WC_Order - * @param array $token_ids - */ - public function update_payment_token_ids( $order, $token_ids ); - /** * Get amount already refunded. *