sheol77
Forum Replies Created
-
Having not yet received an answer, I still found an alternative solution that uses the wp_trash_post() function in combination with an ajax call.
I believe the bug is that the get_delete_post_link() function creates a url call to the backend, but the role does not have access to it.
Thanks for the reply.
I explain the problem better: I created a Custom post type and with Ultimate Member I created a new role that can add new posts to this post type. The role created with ultimate member has all these capabilities:
edit_posts edit_others_posts edit_published_posts publish_posts read delete_posts delete_others_posts delete_published_posts delete_private_posts edit_private_postsHe obviously doesn’t have permission to access the backend.
Theoretically with these permissions should be able to delete their posts, but this does not happen. When I invoke the delete function, nothing is deleted and a redirect takes place on the homepage as if the user did not have the permissions for that function.Only if I add the “delete_users” capability, the user is able to delete his posts, but this also entails accessing the backend, even though he has not been given permission from the Ultimate members panel.
I add that in the configuration of the ultimate member role I do not find the capabilities for the Custom post Type but only for the standards (post pages user etc …). The Custom post type was created with CPT UI
Thank you
- This reply was modified 3 years, 10 months ago by sheol77.
Forum: Plugins
In reply to: [Ultimate FAQ Accordion Plugin] Bug? Only 1 FAQ per Category shows upHi, I also have the same bug, but I have not installed wpml.
WordPress 5.9.3
Ultimate FAQ Version 2.1.14- This reply was modified 4 years ago by sheol77.