Forums
Forums / Plugin: Advanced Order Export For WooCommerce / Export user registered date
(@darylaurito)
5 years, 3 months ago
Hi support, can i check is the function to export user registered date already in the plugin or i have to add a custom filter?
(@algolplus)
hi
Please, follow to https://algolplus.freshdesk.com/support/solutions/articles/25000016635-add-calculated-field-for-order-
use key “user_register_date” and this code
add_filter('woe_get_order_value_user_register_date',function ($value, $order,$user_register_date) { $user_id = $order->get_user_id(); if($user_id) { $userdata = get_userdata( $user_id ); $value = $userdata->user_registered; } return $value; },10,3);
thanks, Alex
The topic ‘Export user registered date’ is closed to new replies.