Title: Create Customer using Programatically
Last modified: October 24, 2019

---

# Create Customer using Programatically

 *  Resolved [chandan115](https://wordpress.org/support/users/chandan115/)
 * (@chandan115)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/)
 * Hi,
 * I have 12000 records and I want to create 12000 **Woo-Commerce customers**.
 * I am creating a customer using **wc_create_new_customer** function while inserting
   12000 records, I am getting a **timeout error**.
 * when inserting 100 records it’s working fine, but when I am inserting more than
   100 records its giving timeout error.
 * Does anyone know how can insert more than 100 records or how to deal with timeout
   error while inserting records?
 * Thanks in advance
    -  This topic was modified 6 years, 6 months ago by [chandan115](https://wordpress.org/support/users/chandan115/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [mother.of.code](https://wordpress.org/support/users/imazed/)
 * (@imazed)
 * The Mother of Code
 * [6 years, 6 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/#post-12061734)
 * Hi there!
 * Timeout errors are almost always a case of not having enough allocated memory.
   Try adjusting `wp_memory_limit` to a higher value (instructions can be found 
   [here](https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/)).
   If that doesn’t help you resolve things, it’s best to chat with your hosting 
   company about what you can do to get more resources.
 *  Thread Starter [chandan115](https://wordpress.org/support/users/chandan115/)
 * (@chandan115)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/#post-12065246)
 * Thank you for your suggestions.
 * the issue is still exist
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/#post-12245425)
 * Hi [@chandan115](https://wordpress.org/support/users/chandan115/)!
 * You could try and increase the `max_execution_time` as per [https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/](https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/)
 * Cheers!
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/#post-12262485)
 * Howdy!
 * We haven’t heard back from you in a while, so I’m going to go ahead and mark 
   this thread as resolved. If you have any other questions please start a new thread.
 * Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Create Customer using Programatically’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [Customer](https://wordpress.org/support/topic-tag/customer/)
 * [woo commerce](https://wordpress.org/support/topic-tag/woo-commerce/)

 * 4 replies
 * 1 participant
 * Last reply from: [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/create-customer-using-programatically/#post-12262485)
 * Status: resolved