I've got a really simple problem here, and i'm sure that the solution is going to be really simple. Here is the code:
function the_fat_lady_sings() {
echo 'this plugin is a far harder than i imagined';
}
add_action( 'publish_post','the_fat_lady_sings' );
I just want to echo that line, and it simply does not work.
Please help, i have no idea what's wrong. If I use init
instead of publish_post
, it works.