Bagaimana cara menampilkan data formulir gravitasi ke woocommerce tabel pesanan akun saya?

Diterbitkan: 2022-11-05

Saya membuat formulir gravitasi dan terintegrasi ke dalam woocommerce, saya perlu menampilkan data yang saya masukkan pada formulir gravitasi ke tabel pesanan di halaman woocommerce my-account/orders/.

https://preview.redd.it/m21nuvpfoyx91.png?width=881&format=png&auto=webp&s=f21e00a595f17f9e7647bb51923ac3fc2220da6d

Anda dapat melihat di baris 14 bahwa saya mencoba memanggilnya melalui gema tetapi saya tidak dapat menemukan kode yang tepat. Saya mencari get_meta dll. Saya tidak terbiasa dengan ini.

Ini adalah data larik $order.

[cache_group:protected] => item pesanan
[meta_data:terlindungi] => Larik
(
[0] => Objek WC_Meta_Data
(
[current_data:protected] => Larik
(
[id] => 5001
[kunci] => _gravity_forms_history
[nilai] => Larik
(
[_gravity_form_cart_item_key] => c4e6d20004a3c6cd9602b4caf96ad709
[_gravity_form_linked_entry_id] => 2966
[_gravity_form_lead] => Larik
(
[form_id] => 12
[source_url] => https://passportdepot.kubemax.com/product/passport-service/?country_1=United+States&state_1=Alabama&passport_service_1=New+US+Passport&passport-product=7-10++++ hari
[ip] => 180.190.148.57
[1] => 19-11-2022
[3] =>
[6] => Enzo
[7] => Penjualan
[8] => [dilindungi email]
[9] => 12321312321
[10] => 16-11-1985
[11] => Amerika Serikat
[155] => 7-10 hari|999
[12] => Alabama
[13] => Paspor AS Baru
[74.1] =>
[73.1] =>
[73.2] =>
[73.3] =>
[58.1] =>
[156] =>
[170] =>
[171] =>
[48.2] =>
[48.3] =>
[48,4] =>
[48.6] =>
[48,8] =>
[49] =>
[50] =>
[51] =>
[53] =>
[55] =>
[56] =>
[160.1] =>
[162.1] =>
[162,2] =>
[162,3] =>
[59.1] =>
[153] =>
[174] =>
[175] =>
[60.2] =>
[60.3] =>
[60.4] =>
[60.6] =>
[60.8] =>
[61] =>
[62] =>
[63] =>
[64] =>
[65] =>
[66] =>
[165.1] =>
[167.1] =>
[167,2] =>
[167,3] =>
[103] => Pilihan Pertama
[104] =>
[105] =>
[106] =>
[107] =>
[24] => FedEx Prioritas Semalam $69|69
[179] => Prioritas FedEx Semalam $69|69
[31] => 1137
)