0

I'm using register-plus-redux and press permit core plugins. The first plugin allows me to add invitation code box in registration form and the second one lets me create custom roles. What I like to do is to get the invitation code that the user has entered and then assign him to a specific role. How can I modify the register-plus-redux plugin to achieve my goal?

Links to plugins:

I appreciate your help.

Mr. Radical
  • 1,847
  • 1
  • 19
  • 29
Adam F
  • 1
  • You are more likely to get more help from the community if you show what you have done so far to solve the problem on you own. – Mr. Radical Mar 31 '15 at 21:47
  • @Mr.Radical I wish I knew enough about wordpress. I know little in this matter and I'm eager to learn and solve it on my own however I haven't found my answer searching for hours :( – Adam F Apr 01 '15 at 08:53

1 Answers1

0

Use the WP after registration hook:

https://codex.wordpress.org/Plugin_API/Action_Reference/user_register

Grab the invitation code out of wp_usermeta for the user, and add your custom functionality.

Bret Weinraub
  • 1,943
  • 15
  • 21