Home › Forums › Calendar Products › Community Events › How to change the owner of Organizer so that they can edit in CE?
- This topic has 5 replies, 4 voices, and was last updated 9 years, 5 months ago by
Ameet.
-
AuthorPosts
-
October 3, 2016 at 1:37 pm #1171936
Ameet
ParticipantHi there,
Quick question, we have a lot of listings from community events, and sometimes when people are listing events they create a new Organizer that they may not own. What is happening lately is that the actual Organizer is logging into the community events but cannot gain access to edit their Organizer profile.Normally, from the admin side, I can change the owner/author of a post, but for the Organizer Custom Post Type, I am unable to change that user. How do you suggest we give access to the actual true owner of their organizer profile?
Thx,
AmeetOctober 4, 2016 at 3:49 am #1172169Cliff
MemberHi Ameet.
You could use the tribe_events_register_organizer_type_args filter to say the Organizer post type supports ‘author’ — refer to register_post_type() for more information
Here’s a code snippet that does this for you for both Organizers and Venues:
https://gist.github.com/cliffordp/24d4ca37f86212ed56a2e8021214d18c
Please do note that our “Organizers” are in no way associated with / equivalent to “registered WordPress users”.
Please let me know if you have any follow-up questions on this topic.
October 4, 2016 at 2:48 pm #1172478Ameet
ParticipantCliff,
Thanks for this, I can see Authors (WP Authors), however I can’t get our proper custom User Type (Promoter) user types in there. Do you know what particular caps needed to get them to show? We have a new user type called Promoters that everyone becomes and they aren’t showing up in the list. Mainly they have the the following:edit_event_tickets
edit_tribe_event
edit_tribe_events
edit_tribe_organizersThoughts?
October 5, 2016 at 2:46 pm #1172958Cliff
MemberAmeet, I tried the same and didn’t get anywhere.
With User Role Editor, I gave Subscribers all 10 permissions available to the Events custom post type (I know you’re working with Organizers).
By default, Contributors (who are showing up in the Author drop-down) only have 2–https://cl.ly/3R3h3b162Q3F–and yet they do show up in the Author drop-down.
So either User Role Editor isn’t working (and coincidentally your method of assigning capabilities isn’t working), or something else is going on. I suspect the latter. Unfortunately, I cannot assist further in this customization. I’d suggest digging deeper though and letting me know if there’s anything else you discover.
October 27, 2016 at 9:35 am #1183831Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘How to change the owner of Organizer so that they can edit in CE?’ is closed to new replies.
