[wp-hackers] Best Practice for hooking wp_insert_post()

Otto otto at ottodestruct.com
Sun Jul 25 22:26:56 UTC 2010

On Sun, Jul 25, 2010 at 10:49 AM, Mike Schinkel
<mikeschinkel at newclarity.net> wrote:
> Any thoughts though on what "artifacts" to look for when using this (for adding a new one, and just in general)?  Should I compare statuses, should I look at IDs, guids, post_titles, post_names, other?  Any explicit insight will be helpful.

*Every* post type will trigger this. Even nav_menu_items. Check the
post type before acting.


More information about the wp-hackers mailing list