Welcome, Guest
Username: Password: Remember me
Discussion about the Another Events Calendar plugin for WordPress.

TOPIC: Delete an event by the user

Delete an event by the user 3 months 1 week ago #1358

  • Oleg
  • Oleg's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
Is it possible to block deletion of an event by the user? And enabling status "pending" - when adding a new event or changed existing event.
It is necessary that only the administrator can delete events, and the user only changes the display status on the site.

Thanks for the help
The administrator has disabled public write access.

Delete an event by the user 3 months 1 week ago #1364

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 265
  • Thank you received: 56
  • Karma: 14
Is it possible to block deletion of an event by the user?

1. Install Members plugin by Justin Tadlock
2. Go to Users => Role from your WordPress admin panel
3. Edit the role you give your users when they signup for an account in your website.
4. Search for the capabilitiy "delete_published_aec_events" and uncheck the “Grant” check-box
5. Save the changes and try now.

And enabling status "pending" - when adding a new event or changed existing event.

You will have to play with the code to get this done. Check "save_event_s" function in /wp-content/plugins/another-events-calendar/public/class-aec-public-user.php file
Last Edit: 3 months 1 week ago by Super User.
The administrator has disabled public write access.
The following user(s) said Thank You: Oleg
Time to create page: 0.208 seconds