• Im trying to figure out how to do so when a new user account is created in then creates a new category with to username of the user, and it should be possible to add custom metadata to it, for use with acf.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the “user_register” action hook to execute arbitrary code any time someone registers. Your code can create a new taxonomy term and also add any related meta data that could be useful. The main restriction is the data used to do this needs to be somehow available to the code. Your callback is passed the user ID and an array of user data, but nothing else. Any other data would need to already exist somewhere where it could be queried for or requested from an online resource.

Viewing 1 replies (of 1 total)
  • The topic ‘Create new category when new user signup’ is closed to new replies.