{"id":1264,"date":"2014-04-25T06:02:58","date_gmt":"2014-04-25T06:02:58","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/functions\/set_post_thumbnail\/"},"modified":"2026-05-20T22:41:34","modified_gmt":"2026-05-20T22:41:34","slug":"set_post_thumbnail","status":"publish","type":"wp-parser-function","link":"https:\/\/developer.wordpress.org\/reference\/functions\/set_post_thumbnail\/","title":{"rendered":"set_post_thumbnail()"},"excerpt":{"rendered":"<p>Sets the post thumbnail (featured image) for the given post.<\/p>\n","protected":false},"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"wp-parser-source-file":[94],"wp-parser-package":[70,3],"wp-parser-since":[16],"class_list":["post-1264","wp-parser-function","type-wp-parser-function","status-publish","hentry","wp-parser-source-file-wp-includes_post-php","wp-parser-package-post","wp-parser-package-wordpress","wp-parser-since-3-1-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-function"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":3,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1264\/revisions"}],"predecessor-version":[{"id":126410,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1264\/revisions\/126410"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=1264"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=1264"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}