Do you want to make featured image required before publishing posts in WordPress?
Then you land at the right place.
We have embedded the code and step by step guide that will help you to easily require a featured image before you can publish the post.
So let’s get started:
Require Featured Images for Posts
First, you need to copy the below function code and paste it into your WordPress theme’s functions.php file.
Code Snippets for WP Require Featured Image
Save the file and check the result by creating and publishing posts without an image…
…So if it gives error “You must select Featured Image. Your Post is saved but it can not be published“ then it’s working.
Let us know if you have any questions or opinion about this post in the comment section.
Don’t forget to share this Require Featured image before publishing posts in WordPress.