When an author clicks "update" on a post in the dashboard, how would I have the posts author change automatically to whatever author it was?
I'm trying to use this code to trigger something when a post is updated but nothing happens. Any Ideas?
add_action( 'publish_post', 'changeAuthor' );
function changeAuthor($post_id){
echo "hello";
}