Is it possible to set a post thumbnail using code? I've been digging through the Core process of setting a post thumbnail and it appears the WPSetAsThumbnail() function (located in set-post-thumbnail.js) is what actually creates/assigns the thumbnail, but I wasn't sure if this could be called directly? Has anyone tried this? -Brad @williamsba