This commit is contained in:
Mike Jolley 2016-11-18 10:13:54 +00:00
parent c933f82961
commit 7e977f60e2
3 changed files with 2 additions and 36 deletions

View File

@ -97,7 +97,7 @@ class WC_Order_Factory {
* Get the order ID depending on what was passed. * Get the order ID depending on what was passed.
* *
* @since 2.7.0 * @since 2.7.0
* @param mixed $product * @param mixed $order
* @return int|bool false on failure * @return int|bool false on failure
*/ */
private static function get_order_id( $order ) { private static function get_order_id( $order ) {

View File

@ -109,7 +109,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_CPT implem
wp_trash_post( $id ); wp_trash_post( $id );
$order->set_status( 'trash' ); $order->set_status( 'trash' );
} }
do_action( 'woocommerce_delete_' . $post_type, $id ); do_action( 'woocommerce_delete_order', $id );
} }
/* /*

View File

@ -13,40 +13,6 @@ if ( ! defined( 'ABSPATH' ) ) {
* @author WooThemes * @author WooThemes
*/ */
interface WC_Order_Data_Store_Interface { 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. * Get amount already refunded.
* *