Forums

publish_post, perhaps I'm insane? (3 posts)

  1. topnotcher
    Member
    Posted 7 years ago #

    Has anyone experienced 'deadness' with the publish_post plugin hook in 1.5.1.2?... I have... ( seems like I was using it just yesterday. )

    I was recently using nightly builds, and developing a plugin. Part of the plugin relies on the publish_post action hook... That part of the plugin... just never happens... I have tried making it echo some debugging output, but nothing happend. As a final test to make sure I wasn't going insane, I made the function that is called by publish_post send an email to me... ( and I even made sure the server's email is working ok... ). I have yet to recieve an email. Now, I techically shouldn't be posting about a problem with a nightly build here, but this continued to be a problem even after I switched to the latest stable release. It is my understanding that publish_post is called when I click 'Publish'... Is it just me? am I going insane?

  2. TheMarco
    Member
    Posted 7 years ago #

    I'm experiencing the same problem!

    example:


    function tgr_test() {
    echo "<h1>BING</h1>";
    }

    add_action('publish_post', 'tgr_test');

    Absolutely NOTHING happpens here.... (WP 1.5.2)

    Can someone please assist?

  3. TheMarco
    Member
    Posted 7 years ago #

    Nevermind... I got it. It seems you just can't echo anything at that point in the loop... It does get called.

Topic Closed

This topic has been closed to new replies.

About this Topic