Problem in using meta data of WooCommerce orders

[ad_1]

Hi everybody, I’m trying to retrieve a meta data from a WooCommerce Order object. This line of code gets all meta data of the order:

`$order = get_post_meta($order_id);`

So the result looks like :

.
.
[_jet_abaf_wc_details] => Array
(
[0] => a:2:{s:7:”form_id”;s:4:”1080″;s:9:”form_data”;a:6:{s:7:”room_id”;s:3:”190″;s:11:”final_price”;s:6:”100000″;s:6:”_dates”;s:23:”2022/11/09 – 2022/11/13″;s:9:”your_name”;s:17:”test”;s:6:”Submit”;s:0:””;s:16:”inserted_post_id”;i:1294;}}
)
.
.
.

The problem is I don’t know how to get form Id from 0 index of the array. How can I use the data stored in the array ?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer