Sauter la navigation

[Résolu] front end post deletion not working for ‘Author’ users

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I am experiencing an error when attempting to delete individual posts for the custom post type "Specs" while logged in as an Author, even though the "delete any" capability is set for Authors.

Solution:

Go to Toolset Access and create a new role that inherits the same capabilities as the Author role; then add a new user with this role to test and confirm that the deletion function works correctly.

This support ticket is created Il y a 1 mois et 3 semaines. 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.

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par MattI4840 Il y a 1 mois et 2 semaines.

Assisté par: Christopher Amirian.

Auteur
Publications
#2804111
Screenshot 2025-04-04 125644.png
Screenshot 2025-04-04 125625.png

I am trying to: I am using a view to list out posts for a cpt called 'Specs'. I've included a link to delete posts individually in the view, but I am getting the attached error when logged in as users that are Authors. It does however work fine when I'm logged in as an administrator.

I have set the author access to be the same as administrators "delete any" for the custom post type (see screenshot), but the error persists.

Link to a page where the issue can be seen:

lien caché

*One other note, I attempted to grab the debug info for you, but I'm getting a critical error on that page.

#2804263

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

Welcome to Toolset support. Toolset can not expand the default capabilities of the default WordPress roles.

What I did was to create a new role from Toolset access and asked it to inherit the same capabilities as an author role.

The role name is testtest. I added a new user with tht role called ttest

If you check that user now, it can delete the items with no issues.

Thanks.

#2804364

Thanks Christopher, that makes sense and I'll remember that for next time!