I have a function that does this:
$order = new WC_Order($order_id); $customer = new WC_Customer($order_id);
How can I get customer details fr
I was looking for something like this. It works well.
So get the mobile number in WooCommerce plugin like this -
$customer_id = get_current_user_id(); print get_user_meta($customer_id, 'billing_phone', true);