Skip Navigation

[Resolved] Let logged in user with subscriber roll to delete media Toolset Forms media lib

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Clayton Chase 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2108553
Screen Shot 2021-07-07 at 10.33.31 AM.png

Is it possible to allow logged in user with subscriber roll to delete media using Toolset Forms and the media library field? Right now I see no option for users to delete their own media. I have the Toolset Access plugin installed and have set "Edit Own" and "Delete Own" on Media (see attached for settings).

#2109003
delete-attatchment.JPG

Hello,

There isn't such kind of built-in feature within Toolset Forms plugin, but you can edit your post form, and try these:
1) enable option "Use the WordPress Media Library manager for image, video, audio, or file fields "
2) In section "CSS Editor", add below codes:

.edit-attachment, .delete-attachment {
display: block !important;
}

Above codes will reveal the hidden edit and delete link, so when user upload the media file with WordPress Media Library manager, he will be able to delete the attachment file, see my screenshot delete-attatchment.JPG

#2111093

I found a code snippet that added the ability for subscriber role to delete their own media.