[wp-hackers] detecting type of edit for parent_save_pre
steve at sltaylor.co.uk
Sat Nov 21 18:29:10 UTC 2009
Just tried this but ran into all sorts of trouble. To be honest I've
lost track of what it was - I think it (or I) got confused about
revisions being saved.
In any case, I've fixed the original problem by detecting
$_POST["attachments"] - it works, at least. I'll put the new, more
serious issue in a new thread.... Bah.
2009/11/20 scribu <scribu at gmail.com>:
> You should hook into 'save_post' instead and check by $post->post_type
> instead of relying on the $_POST variable.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers