I'm trying to add the 'Hello world' from this code:
add_filter( 'the_content', function( $content ) {
return $content . ' <br /> Hello World ';
}, 0);
Before the "read more" link that that sends to single page. As you can see this code ads the hello word after the "read more", and I would like it just before, but after the rest of the content.
Is there a hook for this? If possible I prefer to keep this in functions.php rather than in template.