Security concerns aside, I’m looking for a good plugin or code snippets to solve this:
I have a client’s website where visitors today can submit job ads to posts through a Contact form 7-form and ACF-fields.
My client now want visitors to be able to edit those published job ads without any login and minimal verification. My idea is to at least have the submitted edit end up as a pending draft that admins get an email notification about.
Is there a plugin or code out there that would solve this?
I’m thinking maybe of coding it myself with another form that is presented when clicking “Edit” and pulls the ACF-fields as pre-populated form fields. Then use update\_post\_meta() like in the original form, but send it as the same post by post ID as a pending draft/edit. Would that be possible? I’m thinking mainly about the edit being not published until manual approval from an admin.
[ad_2]
Can you use ACF to set a “password” field? When a visitor posts a job they can set a password to authenticate on edit. And then submit changes on my if the password field is correct.
Your best bet would be to use a password field.. although as a developer you should try to convince the client how bad of an idea it would be. In fact, ask him to give an example of another website that does this. When he can’t tell him because it’s an idiotic idea and noone does this for a reason.