我是wordpress,Woocommerce和Rest api的新手 . 虽然有很多搜索,但我来到了this教程,了解如何为我的网站添加自定义结帐字段 .

现在它在我的网站上工作正常 .

我的问题是......

这些字段在数据库中添加到哪里?如何通过json响应获取/编辑这些字段(即Woocommerce / wordpress rest Api) . 我现在正在使用woocommerce Rest api获取客户详细信息 . 它只显示了这些细节我如何获得新添加的字段?

[customer] => stdClass Object
        (
            [id] => 59
            [created_at] => 2017-05-25T23:43:21Z
            [email] => arw@rediffmail.com
            [first_name] => xxxxxxxxx
            [last_name] => xxxxxxxxxx
            [username] => arw8055
            [role] => customer
            [last_order_id] => 2924
            [last_order_date] => 2017-05-29T11:32:50Z
            [orders_count] => 13
            [total_spent] => 2857.00
            [avatar_url] => http://2.gravatar.com/avatar/e1fb1c835c99bc9bf580dd3d432e4ad1?s=96
            [billing_address] => stdClass Object
                (
                    [first_name] => xxxxxxxxx
                    [last_name] => xxxxxxxxxx
                    [company] => 
                    [address_1] => er
                    [address_2] => rrrr
                    [city] => 
                    [state] => 
                    [postcode] => 
                    [country] => 
                    [email] => 
                    [phone] => 
                )

            [shipping_address] => stdClass Object
                (
                    [first_name] => 
                    [last_name] => 
                    [company] => 
                    [address_1] => 
                    [address_2] => 
                    [city] => 
                    [state] => 
                    [postcode] => 
                    [country] => 
                )

        )