php codes get_option
-
Hello,
I have a custom build plugin in my website and a part of that plugin get the filled in options of this plugin. But recently that code isn’t working anymore since a few days (3 july).
The code:
$options = THEMECOMPLETE_EPO_API()->get_option( $order_id, 'all' ); foreach ($order->get_items() as $item_key => $item) { $item_data = $item->get_data(); $product = $item->get_product(); $comment = ''; foreach ($options as $item_id => $epos){ if ($item_key == $item_id) { foreach ($epos as $epo) { $comment .= $epo['name'] . " : " . $epo['value'] . "\n"; } } } $product_arr[] = array( 'product_id' => $product->get_sku(), 'name' => $item_data['name'], 'price' => $product->get_price(), 'qty' => $item_data['quantity'], 'opmerking' => $opmerking ); }
Was there any kind of update of this plugin which changed some of this code? Or some Woocommerce update?
I hope you can help me so this code is working again.
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘php codes get_option’ is closed to new replies.