How to get meta data
-
Hello, we use pdf packing slips plugin and pull through custom text onto the invoices. On version 2 we used to check what options were used with :
$option_meta = $item->get_meta(‘Option’);
then we would check
if (str_contains($option_meta, ‘Gift Card’) || str_contains($option_meta, ‘Gift Wrap & Card’)):
Then we get the actual data with
$item_data = $item->get_meta(‘_ywapo_meta_data’);
foreach ($item_data[1] as $message): echo $message; endforeach
But now option_meta always returns null – please could you advise what we should be checking against instead now?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get meta data’ is closed to new replies.