add_filter( 'the_content', function( $content ) {
$words = explode( ' ', $content );
$word_count = count( $words );
return $content;
});
Get word count of a post
This post brought to you by RocketGeek, ButlerBlog, and the following: