在functions.php [Wordpress]中添加函数的问题

I write function in functions.php like this

function out() {
  $s = 'End of the post, thanks for reading';
  return $s;
}

add_filter('the_content','out');

and I expect this to be fetched at the end of the post, after entry content. But all it does is that post entry ( what the_content outputs) is not shown, and I only get 'End of the post, thanks for reading'.

What am I doing wrong?

Try this:

 function out($content) {
     return $content." End of the post, thanks for reading";
}

add_filter( 'the_content', 'out' );

Can you try this

function out($content) {
  $content .= '<br>End of the post, thanks for reading';
  return $content;
}

add_filter('the_content','out');