Watson We want to get customer's billing_phone number & put it under "My Account" or "My Address" section. Used this but didn't work phone' => get_user_meta( $customer_id, $name . '_phone', true )in my-address.php,
anderson Your code is correct just need some changes in the argument <?php echo get_user_meta( $customer_id, 'billing_phone', true ) ?> Also, make sure $customer_idis the ID of the user - you possibly want get_current_user_id() instead.