Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Ana,
    You can get data from the user with the following code:

    <?php
    if ( $user_id = get_post_meta($wpo_wcpdf->export->order->id,'_customer_user') ) {
    	$custom_user_meta = get_user_meta( $user_id, '_custom_user_meta', true );
    	echo $custom_user_meta;
    }
    ?>

    Where you replace ‘_custom_user_meta’ with the meta field name of your second billing address field.

    Hope that helps!

    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘display user profile data’ is closed to new replies.