Hi,
i have a form which creates new posts in a posttype "stellenanzeigen" - these are moderated from an editor to publish. All works fine.
Now the question: Is it possible to send in the form-sucess-email to user at creating a post a link to unpublish/delete the post for the user? Like:
Your post will publish soon by editor. If you wanna delete this post click here.
thx and best regards - alex

Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Alex
I can't see how it would be possible to create a link to delete the post that would be included in the email, not without a highly customised solution at any rate.
The people submitting posts to the site, are they registered users on the site?
I imagine you could have a page with a View that shows such posts where the author is the logged-in user, and the list of posts could include links to delete the posts. (The View would include a Query Filter to show posts whose author is the current user.)
The users would need to be logged in, and they would need to be authors of the posts (which is normally the case with the front end forms to publish posts).
Would that be a solution?
See here for the shortcode you would use in the output of your View to generate the delete post link: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred-delete-post
Hi Nigel, - thx i think in the same direction, user have to be registered.
warmly - alex 😉