how to prefill post content

I got a button which will appear in all posts. I used this snippet (for testing) in the functions.php but it has no effect.