Title: [Plugin: eShop] Generate discount code when user registers
Last modified: August 20, 2016

---

# [Plugin: eShop] Generate discount code when user registers

 *  Resolved [neonWired](https://wordpress.org/support/users/neonwired/)
 * (@neonwired)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-eshop-generate-discount-code-when-user-registers/)
 * Is there a function I can use to generate a single use discount code when a user
   registers? I assume there must be a function that does this.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-eshop-generate-discount-code-when-user-registers/#post-2143528)
 * No – sorry.
 *  Thread Starter [neonWired](https://wordpress.org/support/users/neonwired/)
 * (@neonwired)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-eshop-generate-discount-code-when-user-registers/#post-2143532)
 * I figured out you can just insert a code into the discount code table in the 
   user_register action. No problem.

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

The topic ‘[Plugin: eShop] Generate discount code when user registers’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/eshop_d6e4b8.svg)
 * [eShop](https://wordpress.org/plugins/eshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eshop/)
 * [Active Topics](https://wordpress.org/support/plugin/eshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eshop/reviews/)

## Tags

 * [discount code](https://wordpress.org/support/topic-tag/discount-code/)

 * 2 replies
 * 2 participants
 * Last reply from: [neonWired](https://wordpress.org/support/users/neonwired/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-eshop-generate-discount-code-when-user-registers/#post-2143532)
 * Status: resolved