[wp-hackers] publish_post also kicking in on updates?

Jason goldsmith unteins at gmail.com
Thu Jul 1 14:39:47 UTC 2004


I think that I am having the same issue as you with LivePress. I
haven't totally gotten into debugging it yet, but the publish and edit
posts seem a bit wonky....

On Tue, 29 Jun 2004 22:13:18 -0400, Gudlyf <wphackers at realistek.com> wrote:
> 
> Haven't seen any insight to this issue, so since more people have joined
> I'll try my luck once more:
> 
> I saw from the Plugin/API wiki page at
> http://wiki.wordpress.org/Plugin/API that the 'publish_post' hook is
> supposed to only kick in when a post is *first* published. However, with
> my update-notify plugin (that sends
> an email out to a list when the blog gets a new post), I've had to
> fiddle around trying to get it to not mail
> if an already published post gets edited. You can see from the latest
> version I have up at
> http://www.gudlyf.com/index.php?p=357 what I've tried. It only works if
> you don't first save the post to
> draft, then publish, so that's not going to work.
> 
> Is there another hook I'm supposed to use to only kick in on the initial
> publish of a post? Perhaps that wiki
> entry is described incorrectly?
> 
> Thanks.
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>



More information about the hackers mailing list