Created
December 16, 2017 19:37
-
-
Save SeanTOSCD/fc5af02e9295f6113cfcbef598ec78b9 to your computer and use it in GitHub Desktop.
FES show custom user meta on vendor order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT COPY THIS LINE | |
function sd_edd_fes_custom_user_meta( $payment ) { | |
$user = edd_get_payment_meta_user_info( $payment->ID ); | |
?> | |
<tr> | |
<td><strong><?php _e( 'Phone', 'easy-digital-downloads' ); ?>:</strong></td> | |
<td><?php echo get_user_meta( $user['id'], 'phone_number', true ); ?></td> | |
</tr> | |
<?php | |
} | |
add_action( 'fes_payment_receipt_after', 'sd_edd_fes_custom_user_meta' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment