Plugin to display text before a post

I am trying to display some text before publising post.When i add post i am getting error as

Publishing failed

my code is

function adddata(){

echo “Welcome to my post!……….”;

}

add_action(‘new_to_publish’, ‘adddata’);

It is not getting displayed

Read more here:: Plugin to display text before a post

Leave a Reply

Your email address will not be published. Required fields are marked *