Added state alongside city & other info

This commit is contained in:
Kurt Zenisek 2019-06-19 17:13:43 -05:00 committed by GitHub
parent fccbd105f1
commit 7e7583710a
1 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,12 @@ class WC_Admin_REST_Reports_Customers_Controller extends WC_REST_Reports_Control
'context' => array( 'view', 'edit' ), 'context' => array( 'view', 'edit' ),
'readonly' => true, 'readonly' => true,
), ),
'state' => array(
'description' => __( 'State.', 'woocommerce-admin' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
'postcode' => array( 'postcode' => array(
'description' => __( 'Postal code.', 'woocommerce-admin' ), 'description' => __( 'Postal code.', 'woocommerce-admin' ),
'type' => 'string', 'type' => 'string',
@ -335,6 +341,7 @@ class WC_Admin_REST_Reports_Customers_Controller extends WC_REST_Reports_Control
'name', 'name',
'country', 'country',
'city', 'city',
'state',
'postcode', 'postcode',
'date_registered', 'date_registered',
'date_last_active', 'date_last_active',