This code snippet for Easy Digital Downloads¬†adds the customer’s username to the “Customer Details” section on the payment screen, and links it through to the user’s profile. This is extremely useful when you need to quickly look up the user’s details associated with the payment, without having to search for the user from WordPress’ Users¬†page.

24076-username-link

Copy and paste the following into your child theme’s functions.php (mind the opening PHP tag) or a custom plugin: