Remove empty p tag in wordpress content

By | April 28, 2017

WordPress will automatically insert empty <p> and </p> tags which separate content breaks within a post or page. If, for some reason, you want or need to remove these, you can use either of the following code snippets.

Just put below code in you active theme function.php