• I would like to keep the overall delete-to-trash functionality but remove the permission from certain roles to permanently delete posts from the trash bin. Is there a way to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need a user roles plugin to modify the permissions for certain roles. There are many free ones including https://www.ads-software.com/plugins/user-role-editor/. Check the repository for others.

    Hope this helps.

    Thread Starter JimDeadlock

    (@jimdeadlock)

    Thanks, this makes it clearer to see what’s going on, but the only relevant capability I can see is ‘delete_posts’ which this role already has. I want this enabled so they can delete posts (move to trash) but I don’t want them to be able to go to trash and permanently delete the posts. Any way to achieve this?

    Oh, I do not think what you want is possible… though with custom code maybe it is. Personally, I have never needed to play with the core wp capabilities on this level so I am not sure where to start.

    One other thing that you’ll have to consider is that I believe by default, anything that is moved to ‘Trash’, will get automatically deleted from the ‘Trash’ after 30 days (by default). Of course, there may be a plugin/code that can adjust that as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Disable Delete Permanently’ is closed to new replies.