wp_set_object_terms creates relationship to REVISION?

Use wp_is_post_revision() function which will give you false if post is not a revision (in which case just work as usual with that) or actual post ID to use instead of revision’s.

Leave a Comment