Home » Wordpress » How to Check the_content is empty in wordpress

Here is code to check the_content is or not empty in wordpress.

<?php 
 $content = get_the_content();
 if(trim($content) == "") {
 echo '<p>Empty Content</p>'
 } else {
 echo '<p>NOT Empty Content</p>';
} ?>

Array ( [0] => Wordpress )