/ Published in: PHP
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID.
This function is part of the WPelements library class available on Github. Feedback / suggestions / improvements are always welcome.
This function is part of the WPelements library class available on Github. Feedback / suggestions / improvements are always welcome.
URL: https://github.com/krike/WPelements