get_post_meta and add_post_meta not working
You’re saving the transaction details as a serialized object in post-meta and then you’re trying to search for a specific order ID. Your problem is here: $data = get_post_meta( $ggowlccpy_order_id, $key = ‘_ggowlccpy_refund_details_get’, $single = false ); get_post_meta requires a post ID but you’re passing it the order ID you want to search for. How … Read more