Customer ID is not populating correctly
-
Hello,
We have a WooCommerce site. On the my-account/downloads page, the current user ID is not being properly retrieved when logged in as a user. The function get_id() in the WC_customer class is returning 0 when visiting that page (wp_get_current_user() returns the correct ID)
This is preventing users from viewing their list of downloadable products. This occurs even on the default theme. Can you advise on how to troubleshoot this issue?
- The topic ‘Customer ID is not populating correctly’ is closed to new replies.