[wp-hackers] wp-hackers Digest, Vol 63, Issue 1

Elizabeth Buckwalter elizabeth at slatetechpdx.com
Thu Apr 1 01:08:45 UTC 2010


> Message: 7
> Date: Thu, 1 Apr 2010 03:59:47 +0300
> From: scribu <scribu at gmail.com>
> Subject: Re: [wp-hackers] Odd wp_insert_post hook behavior MU 2.9.1.1
> To: wp-hackers at lists.automattic.com
> Message-ID:
>        <q2s349fe48b1003311759s7683ed8eoa5fd4098e99c426b at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> To access the $post parameter, you need to write:
>
> add_action( 'wp_insert_post', array(&$fu, 'cache_activity_post'), 10, 2);
>
> where 10 is the (default) priority and 2 is the arg count.
>
>
>

That's very helpful, but the hook doesn't run *at all* except on deleting a
post.

-- 
Thanks,
Elizabeth Buckwalter
Senior Developer
elizabeth at slatetechpdx.com
Slate Technologies LLC
http://slatetechpdx.com
6315 SE Holgate Blvd, Portland, OR
503.546.7698


More information about the wp-hackers mailing list