ID de pièce jointe WP Get

get_post_thumbnail_id()
Andrew Lautenbach