Add phone to api

This commit is contained in:
Mike Jolley 2021-06-03 14:05:30 +01:00
parent 5e26428d44
commit 01f71d7564
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ class WC_REST_Customers_Controller extends WC_REST_Customers_V2_Controller {
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
'phone' => array(
'description' => __( 'Phone number.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
),
),
),
'is_paying_customer' => array(