PHP Class WC_Helper_Order

This helper class should ONLY be used for unit tests!.
Afficher le fichier Open project: woocommerce/woocommerce Class Usage Examples

Méthodes publiques

Méthode Description
create_order ( $customer_id = 1 ) : WC_Order Create a order.
delete_order ( integer $order_id ) Delete a product.

Method Details

create_order() public static méthode

Create a order.
Since: 2.4
public static create_order ( $customer_id = 1 ) : WC_Order
Résultat WC_Order Order object.

delete_order() public static méthode

Delete a product.
public static delete_order ( integer $order_id )
$order_id integer ID of the order to delete.