Get opt_in_status from order
-
How do I get to know if user checked in checkbox to subscribe?
I am trying to access like this:
$order = wc_get_order( $order_id ); $opt_in_status = $order->get_meta( 'opt_in_status' );
Is this the right way?
Thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get opt_in_status from order’ is closed to new replies.