You’re close – just need to tweak your arguments:
<?php echo get_user_meta( $customer_id, 'billing_phone', true ) ?>
Just make sure $customer_id
is the ID of the user – you probably want get_current_user_id()
instead.
You’re close – just need to tweak your arguments:
<?php echo get_user_meta( $customer_id, 'billing_phone', true ) ?>
Just make sure $customer_id
is the ID of the user – you probably want get_current_user_id()
instead.