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 1 year 3 months 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 1 year 3 months ago #1364

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 305
  • Thank you received: 65
  • Karma: 16
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: 1 year 3 months ago by Super User.
The administrator has disabled public write access.
The following user(s) said Thank You: Oleg

Delete an event by the user 2 months 2 weeks ago #1534

  • Patrick
  • Patrick's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
Hi,

I've got the problem the other way. I've got Authors and would like to give them access to delete their events. I've got "members" and gave the access there but it doesn't work. Only Admins and Editors can delete their posts. Any solution?

Thanks in advance!
The administrator has disabled public write access.

Delete an event by the user 2 months 2 weeks ago #1535

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 305
  • Thank you received: 65
  • Karma: 16
@Patrick,

Just follow the same steps provided in my previous reply under the heading "Is it possible to block deletion of an event by the user?". But, instead of unchecking "delete_published_aec_events" capability, you must enable it for the "Authors" and "members".
The administrator has disabled public write access.

Delete an event by the user 2 months 1 week ago #1537

  • Patrick
  • Patrick's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
As I said, I did so but it isn't working - if I click on delete it send me back to "home"
The administrator has disabled public write access.

Delete an event by the user 2 months 1 week ago #1539

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 305
  • Thank you received: 65
  • Karma: 16
@Patrick,

Kindly email us your WordPress admin access details to This email address is being protected from spambots. You need JavaScript enabled to view it. to further look into this.
The administrator has disabled public write access.
Time to create page: 0.252 seconds