I have four taxonomy terms and there will be no more added: office, recreation, economic-development, fire-department.
What I am trying to do is if the user role is:
"Recreation Manager" the taxonomy is set to "recreation"
"Office Manager" the taxonomy is set to "office"
"Fire Manager" the taxonomy is set to "fire-department"
"Development Manager" the taxonomy is set to "economic-development"
how would I adjust the code provided in the example on the link provided
Where:
- Replace 9999 with your original form ID
- Replace YOUR-TAXONOMY-SLUG with your original taxonomy slug
- Replace the role slug if needed within the in_array argument