Title: Invite codes
Last modified: August 22, 2016

---

# Invite codes

 *  Resolved [alptkz](https://wordpress.org/support/users/alptkz/)
 * (@alptkz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/)
 * I have the option to remove Invite codes once they are used enabled, but the 
   codes remain even after a user registers.
 * [https://wordpress.org/plugins/membership/](https://wordpress.org/plugins/membership/)

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

 *  Thread Starter [alptkz](https://wordpress.org/support/users/alptkz/)
 * (@alptkz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/#post-5208757)
 * anyone ?
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/#post-5208769)
 * Hi [@alptkz](https://wordpress.org/support/users/alptkz/),
 * Greetings and thanks for posting on the forum.
 * Could you please tell me which version of Membership plugin you are using?
 * Also if you can please share me your site link along with invite code so that
   i can test it.
 * Kind Regards,
    WPMU DEV
 *  Thread Starter [alptkz](https://wordpress.org/support/users/alptkz/)
 * (@alptkz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/#post-5208771)
 * Thanks for your reply.
 * I’m on the latest version of Membership, so 3.4.4.1.
 * Here is a [link](http://wptest.innovationdothome.com/register) to the register
   page. The invite code is 123456.
 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/#post-5208781)
 * Hi [@alptkz](https://wordpress.org/support/users/alptkz/),
 * Thank you for your reply.
 * I could reproduce the issue on my test site using latest version of Membership
   plugin therefore i have notified the plugin developer to fix this issue.
 * In the meanwhile to fix this issue try editing the following Membership plugin
   file as below on line number 134
 * **Membership plugin file:**
    membership\membershipincludes\addons\simple.invitecodes.
   php
 * **Before Editing:**
 *     ```
       if(empty($error)) {
       ```
   
 * **After Editing:**
 *     ```
       if(is_wp_error($error)) {
       ```
   
 * **Note:** You are making changes in the plugin file and these changes will be
   overwritten and lost when you update the plugin and you will have to make these
   again after plugin updation.
 * Best Regards,
    WPMU DEV

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

The topic ‘Invite codes’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/invite-codes/#post-5208781)
 * Status: resolved