Saltar navegación

[Resuelto] front end post deletion not working for ‘Author’ users

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por MattI4840 8 months, 2 weeks ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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:

enlace oculto

*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
Colaborador

Idiomas: Inglés (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!