Ecommerce Shopify WordPress Discussion

user_register action hook not returning customer lookup detail

add_action('user_register', 'registration_save', 10, 1); function registration_save($user_id) { global $wpdb; $customer = $wpdb->get_row("SELECT customer_id FROM $wpdb->prefix" . "wc_customer_lookup where user_id=$user_id"); if($customer){ // fetch customer information // not able to get the customer details here , which hook is better to fetch customer look up information after user registration ? } } Using the above hook , I try to fetch customer lookup table data , but at this point customer lookup data is not updated with registered user , which hook is suitable to get customer lookup after user registration. Kindly advice , Thanks I try to fetch customer data from wc_customer_lookup table inside this code but its not working , also tried other hooks 'woocommerce_created_customer' and filters 'registration_redirect' but none of this return customer_lookup information.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.