Add user to group via metadata
-
What would be the right code for a plugin to get grab a person’s specific value from an ACF field added at registration for an if-then statement as well if it’s multiple choices? An example would be if there was metadata field is for a state and then person selects New Jersey then they will be added automatically to the New Jersey group. Or they can pick NJ and PA and be added to both groups.
Right now it adds all of the options in the code.
I’m using this as the base: https://github.com/eggemplo/Users-auto-Group
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add user to group via metadata’ is closed to new replies.