Support » Fixing WordPress » How to display message on publish_post hook?

  • I’m working on a plugin that runs a function when a post is published with this code:

    add_action(‘publish_post’, ‘tt_auto_tweet’, 99);

    How can I display a message below the yellow “Post published” text after this action is run?

    I see in /wp-admin/edit-form-advanced.php the code that prints anything sent through an HTTP GET request: if (isset($_GET[‘message’])). I need to know how to go about sending this request on the page shown after a post is published.

  • The topic ‘How to display message on publish_post hook?’ is closed to new replies.