I would like to be able to change the author of a post.
I have the post-id, the user-id that I want to transfer it to, and I have the user-id that the post currently belongs to.
I need to do this with php, because it must happen automatically. This reassignment of authors must occur upon a certain event that I am currently hooking into. Meaning, I don't want to be doing this in the Dashboard.
I can't find anything on google.