WordPress.org

Ready to get started?Download WordPress

Forums

How to display message on publish_post hook? (1 post)

  1. richardxthripp
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic