Passer la navigation

[Résolu] Let logged in user with subscriber roll to delete media Toolset Forms media lib

This support ticket is created Il y a 4 years, 11 months. 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 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Clayton Chase Il y a 4 years, 10 months.

Assisté par: Luo Yang.

Auteur
Publications
#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.