Home › Forums › Calendar Products › Events Calendar PRO › Add WordPress users as an associated field
- This topic has 7 replies, 4 voices, and was last updated 9 years, 4 months ago by
Awaken Solutions.
-
AuthorPosts
-
November 13, 2016 at 7:41 am #1191577
Awaken Solutions
ParticipantI am building a system where I need to associate events with an existing WordPress user. Can you help me with what steps I would need to try building this?
A manual workaround for now is to make an Additional Field called username, and manually populate it with the usernames of the users on my site. But I would hope to have an automated system where this list of users would update as new users are added.
I am reasonably handy with PHP and plugin development, so am looking for guidance on where to start in making this customization.
Thanks in advance.
November 14, 2016 at 1:32 pm #1192071Cliff
MemberHi, Gregory.
It sounds like you might be interested in our Community Events (CE) add-on.
It enables your users to create/edit their own events.
Each user is assigned as that post’s Author if they’re logged in when they create the event (since there’s an option to allow Anonymous Submissions, which is sounds like you would not want enabled).
You might also be interested in this snippet to display the Author metabox on both Organizers and Venues (since the user is the Author of these too if they create them via the CE front-end form or the wp-admin area if you allow that):
https://gist.github.com/cliffordp/24d4ca37f86212ed56a2e8021214d18c
Last but not least, we have a pretty great Refund Policy so you can buy one or many of our add-ons and thoroughly test them.
Let me know if you have any follow-up questions.
November 14, 2016 at 1:39 pm #1192078Awaken Solutions
ParticipantThanks for the advice. That add-on is interesting, but not what I need.
Only admins are creating events on this website. But they would benefit from having an additional field which pulls all the WordPress usersnames.
I am wondering if there are any hooks which a developer can use to modify the additional fields.
For now I have created an additional field manually using the standard plugin settings, and manually pasted all the existing usernames, but I am hoping to build a more automated system if any useful hooks can be leveraged.
Thanks.
November 14, 2016 at 4:45 pm #1192181Cliff
MemberI’m not 100% clear what you’re using this for / how you’re wanting things to work, but you might benefit from using https://wp-types.com/ or https://www.advancedcustomfields.com/ with our tribe_events custom post type.
November 20, 2016 at 8:26 am #1195090Awaken Solutions
ParticipantThanks for the reply Cliff. Do these third-party CPT plugins allow you to easily manage options within the tribe-events CPT?
November 22, 2016 at 11:39 am #1196085Cliff
MemberYou’re welcome.
Both those options would require a decent amount of customization to get up and running with our plugin. In other words, neither is a plug-and-play solution out of the box. I believe WP Types plugin would be code-free, and the ACF option would require some coding (probably minor).
Also, we can’t guarantee or support anything third-party (not created by us).
December 14, 2016 at 8:35 am #1205903Support 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 ‘Add WordPress users as an associated field’ is closed to new replies.
