Display the customer’s username in the Bookings list

, ,

If you are using WooCommerce Bookings, sometimes it could be hard to understand what customer booked for a product on your site.
It could be the case when you have multiple customers with the same name.

An easy way to avoid confusion is to print the username of the customer. WordPress only allows for unique usernames, so there will be no mistakes using it instead of the real customer name.

Open the file functions.php located in wp-content/themes/your-theme-name/ and add this code at the end of the file:

This code will print the customer username after his real name, like in this screenshot:

bookings-username

1 reply
  1. Marie
    Marie says:

    I’m using this on my site but I’m trying to add Person Types column. Could you point me toward how you found the
    $booking->get_customer(); functions. I cannot find them in the plugin

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply