Automatically create a Group upon creation of a custom post type post
-
As the title suggests, is there anyway that user groups can be created when a post is created.
Basically I’m doing something similar to the following.
There is a custom post type, lets say called “Actors”. Now in actors I create a post for lets say Tom Cruise. When this happens, I want it so a user group is automatically created with the name of “Tom Cruise”. This will help because I can then do some customizations and make it so each actor has it’s own forums where users can discuss, as well as the users that join the group can be considered as “fans” of that specific actor.
If this is possible through PHP or a plugin, or anything please let me know. Maybe the function that is used to create groups, and use an if statement to see if a custom post type post has been created, if it has then it creates a group using the post title of that post.
Any help would be appreciated.
- The topic ‘Automatically create a Group upon creation of a custom post type post’ is closed to new replies.