Get Custom Field Value in code
-
How can I get value of custom field in my function written in functions.php
function ParsePostRequest($order_id) { $order = new WC_Order( $order_id ); foreach ($order->get_items() as $item_id => $item ) { $item_quantity = $item->get_quantity(); } }
I have a custom field and I have defined its class as pfid. I want to use its value in function.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get Custom Field Value in code’ is closed to new replies.