As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image.
ANY HELP ???
As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image.
ANY HELP ???
You must be logged in to post a comment.
The
has_post_thumbnail()
works for me, in WP versions 3.4.1 and other most recently.But in this logic, because the WP will publish the post even with
exit
orwp_die()
or anything to terminate the PHP script. For prevent that the post stay with published status, you will need to update the post before terminate. Look the code below: