Create post revision on edit
Viewing 2 Posts - 1 through 2 (of 2 total)
Author | Posts |
---|---|
February 17, 2014 at 7:54 pm 15508 | |
Tareq Hasan | I use WPUF PRO for creating and editing listings. When a user edits a listing, i can either set it to pending until i check it (problem -> listing is now unpublished) or let it stay published and check it when i can (problem -> i don't know what the user has changed and if the new content is appropriate). Solution: When a user edits a post, a revision is created, containing the changes. I get notified like i do now, i check the revision and if i approve it i set the post to that revision. What say you? Would it be possible, and if yes, what files should i edit in order to accomplish that? Thanks! |
February 17, 2014 at 7:57 pm 15509 | |
Vyron | On second thought, maybe it would be simpler to use the wpuf_edit_post_after_update action to revert the post to it’s previous revision, after a change has been submitted, and then check the latest version for changes. However, i would also need a way to restrict further updates on the same post, until the latest version is the one being edited. |
February 18, 2014 at 2:21 am 15534 | |
Tareq Hasan | Thats a very complicated problem. I’ve seen this kind of situation few times though, but currently I don’t have a solution. May be an add-on can popout in future to do exactly that, but I can’t offer you any solution for this problem right now. |
Viewing 2 Posts - 1 through 2 (of 2 total)