[wp-hackers] Set post thumbnail via code

Brad Williams bradw at illiams.com
Fri Mar 12 15:31:36 UTC 2010


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

 

 



More information about the wp-hackers mailing list