Automatically publish logged in, hold for review logged out.
Hey guys, I’ve been scouring the forums for an answer and I must have missed it. I want logged in users to be able to have their events published automatically without moderation, but general submissions to go into the moderation queue as usual. I’ve tried creating a new user role that can add Tribe events and so on, but they still go to moderation. Is this actually possible? Thanks!
Thanks for contacting us! Here is some code that should do what you are looking for.
It assumes you are allowing anonymous submissions, but default status is still set to ‘draft’.
Does this make sense? Let me know if this doesn’t work for you.
– Casey Driscoll
Hi Casey, thanks a lot for taking this on! I pasted the code snipped into the functions file, and the problem is that logged out anonymous users are still able to post (and it goes to the moderated queue, as it should) but when a logged in user tries to submit an event I get the message ‘WordPress failure’ and ‘Are you sure you want to do this?’ – but there is no yes/no option. And ideas? Thanks!
Hi Casey, I actually found a workaround: simply redirected logged in users directly to the Events dashboard page, restricted their access, and abandoned the front end for logged in users altogether – kept it just for anonymous users. But you set me on the right track, so thanks a million!
The topic ‘Automatically publish logged in, hold for review logged out.’ is closed to new replies.