Uploaded attachment not set as featured image July 21, 2022 by Tarik Billa I needed to do the following: set_post_thumbnail( $new_reseller_id, $attach_id );