Programatically change post author

It shouldn’t be any problem. Try this:

$arg = array(
    'ID' => $post_id,
    'post_author' => $user_id,
);
wp_update_post( $arg );

Leave a Comment