php - Set user role to custom role with invitation code in wordpress -
i'm using register-plus-redux , press permit core plugins. first plugin allows me add invitation code box in registration form , second 1 lets me create custom roles. invitation code user has entered , assign him specific role. how can modify register-plus-redux plugin achieve goal?
links plugins:
i appreciate help.
use wp after registration hook:
https://codex.wordpress.org/plugin_api/action_reference/user_register
grab invitation code out of wp_usermeta user, , add custom functionality.
Comments
Post a Comment