• Resolved pguilha

    (@pguilha)


    I’m building a job board that does not require users to register to post a job. However, I would like them to be able to delete and edit their listing. The solution would be to include in an email a set of urls that would allow them to do that.
    I have found suggestions like using wp_delete_post(url_to_postid(“url”)), but:
    1) I’m fairly new to wordpress and don’t understand where/how to embed this command into an email template.
    2) the link that gets created should not have such a simple logic that anyone can create a link to delete any post. It should be private/secure in some way. I’m thinking for example of a scrambled url of some kind.

    Any advice on how to get this done would be much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘emailing private links to delete and/or edit a job posting’ is closed to new replies.