Set correct post type

This commit is contained in:
Mike Jolley 2014-06-11 16:11:28 +01:00
parent ef3e728855
commit c591a3fb54
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function wc_create_order( $args ) {
$order_data['ID'] = $args['order_id'];
} else {
$updating = false;
$order_data['post_type'] = $args['shop_order'];
$order_data['post_type'] = 'shop_order';
$order_data['post_status'] = 'wc-' . apply_filters( 'woocommerce_default_order_status', 'pending' );
$order_data['ping_status'] = 'closed';
$order_data['post_author'] = 1;