Change post categories while saving post

Posted by fuunnews on Stack Overflow See other posts from Stack Overflow or by fuunnews
Published on 2010-04-23T15:19:23Z Indexed on 2010/05/03 17:08 UTC
Read the original article Hit count: 832

Filed under:

Hi everybody, I'm trying to change post categories inside a save_post action callback function, but I get endless recursion, because wp_update_post method fires save_post action itself.

Maybe somebody did this before& Or there is a way to change post categories without using wp_update_post method?

© Stack Overflow or respective owner

Related posts about Wordpress