Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created December 16, 2017 19:37
Show Gist options
  • Save SeanTOSCD/fc5af02e9295f6113cfcbef598ec78b9 to your computer and use it in GitHub Desktop.
Save SeanTOSCD/fc5af02e9295f6113cfcbef598ec78b9 to your computer and use it in GitHub Desktop.
FES show custom user meta on vendor order
<?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