This commit is contained in:
Prospress Inc
2018-12-12 14:48:11 +01:00
committed by Remco Tolsma
parent 37367ac369
commit 721dda6e5c
340 changed files with 5114 additions and 2125 deletions

View File

@@ -85,7 +85,7 @@ class WC_REST_Subscriptions_Controller extends WC_REST_Orders_Controller {
$response->data['billing_period'] = $subscription->get_billing_period();
$response->data['billing_interval'] = $subscription->get_billing_interval();
$response->data['start_date'] = wc_rest_prepare_date_response( $subscription->get_date( 'date_created' ) );
$response->data['start_date'] = wc_rest_prepare_date_response( $subscription->get_date( 'start_date' ) );
$response->data['trial_end_date'] = wc_rest_prepare_date_response( $subscription->get_date( 'trial_end' ) );
$response->data['next_payment_date'] = wc_rest_prepare_date_response( $subscription->get_date( 'next_payment' ) );
$response->data['end_date'] = wc_rest_prepare_date_response( $subscription->get_date( 'end_date' ) );