Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Joseph Hyink

User Registration date in WooCommerce > Orders

Hello!

I love this plugin! I wonder if it is possible to include the user registration date (the one that appears in the Users admin page) in WooCommerce > Orders. I found how to select Customer custom fields, but apparently, this is not how WP stores that data.

Thanks for any help!

Joe

10 months, 3 weeks ago
Stefan van den Dungen Gronovius
Developer

The related user/customer column for the order page does not allow you to show every field for a user.
The Register date is a field in the wp_user table, so unfortunately, the meta display could not be used here.
At this moment, the only way to get that value in your column is by using our value hook:

https://github.com/codepress/admin-columns-hooks/blob/master/ac-column-value.php

You can take the customer column and put the display value on ID, so you can use that in the hook to change it to the registered date:

get_userdata($user_id)->user_registered

10 months, 3 weeks ago

You must be logged in to reply to this topic.