ECHO Executing 4 Times In Head
Filters should return, not echo. function my_content( $content ) { // Something something $content=”my content”; return $content; } add_filter( ‘the_content’, ‘my_content’ ); You can echo, but you’ll need output buffering, like this: function my_content( $content ) { // Something something ob_start(); echo ‘my content’; $content = ob_get_contents(); ob_end_clean(); return $content; } add_filter( ‘the_content’, ‘my_content’ ); … Read more