Do you run a blog with multiple authors? Then, you probably have wondered how you can set a minimum word count for your posts in WordPress. In this article, we will share with you a snippet that lets you set a minimum Word count for your WordPress posts. If a user tries to publish a post that is too small, then it will return an error telling them the post is not long enough.
Simply open your theme’s functions.php file and paste the following code:
You may change the minimum number of words from 100 to whatever you like. You can also customize the error to make it helpful.