I disabled wp-admin with a plugin because i don’t want it to be accessed by any non admin user.
The problem is that i want my authors to be able to delete their own posts with the link:
<a href='" . wp_nonce_url("wp-admin/post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "'>
The problem is that this link needs access to wp-admin so the users cannot delete their posts now.
Is there a workaround to keep wp-admin disabled for authors but still let them delete posts from the frontend?
- The topic ‘Delete post without access to wp-admin’ is closed to new replies.