Skip Navigation

[Resolved] wp-toolset cred form email with deactivation link

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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year ago.

Author
Posts
#2662977

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

#2663103

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

#2664465

Hi Nigel, - thx i think in the same direction, user have to be registered.

warmly - alex 😉