Help with adding 'delete post link' to users in the front end please!
-
I’m trying to use the get_delete_post_link from the front end to delete posts which works well as admin but not other users.
Code –
if ( get_current_user_id() == get_the_author_meta(‘ID’) )
{
echo “Delete Entry“;
}It seems to always error our saying user doesn’t have access to the backend.
Are there any work arounds to get the post deleted without hitting the wp-admin/ folder?
Thanks in advance.
Rob.
https://www.ads-software.com/extend/plugins/wp-user-frontend/
- The topic ‘Help with adding 'delete post link' to users in the front end please!’ is closed to new replies.