Include A Custom User Field In Summary Report By Customers
-
I am trying to include a custom user field in summary report by customers. I can see this field in the standard order export, but not in the summary report by customers. I register the custom user field as follows and it works:
function eliv_woocommerce_checkout_update_user_meta( $customer_id, $posted ) { if (isset($posted['billing_company_id'])) { $dob = sanitize_text_field( $posted['billing_company_id'] ); update_user_meta( $customer_id, 'company_id', $dob); } } add_action( 'woocommerce_checkout_update_user_meta', 'eliv_woocommerce_checkout_update_user_meta', 10, 2 );
What do I need to do to be able to include this data in the summary report by customers?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Include A Custom User Field In Summary Report By Customers’ is closed to new replies.