Notify user that their post has been modified
I'm writing a plugin that modifies the user's post in the newpost_process hook. I want to display a notification to the user when they are sent back to their post telling them that it was modified (in the postbit_complete hook).
I got it to work but I'm use the "p" get variable because that's the only way I could detect if the user has just been sent back after submitting the post.
I say for each post in the postbit, if its id is equal to $_REQUEST['p'] then display the message at the top of that post. I have a feeling this isn't a good way to do it though.
Is there a better way to do this?
|