Change Post and CPT author on the fly while publish the post

You need to hook into the save_post action filter, get the post meta field, and swap the ID’s and fire the update_post function.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)