WordPress.org

Forums

[resolved] Edit Post panel get tags array (2 posts)

  1. toneburst
    Member
    Posted 4 years ago #

    Hi,

    this is a big of a hair-tearer. My plugin runs at post-save time, and adds tags to a post. The problem is, if I use
    wp_get_post_terms()
    to get the existing tags, I'm getting the tags from the last save of the post. This basically means that tags can't be deleted.

    Does anyone know how to get the current state of the Post Tags meta box in the Edit Post Dashboard panel? I've tried dumping out the $_POST data, but I can't see anything obvious there, unless it's hidden in a sub-array.

    Cheers,

    a|x

  2. toneburst
    Member
    Posted 4 years ago #

    It's OK, I got it. It was another error in my code that was causing the issue. It's now working fine.

    a|x

Topic Closed

This topic has been closed to new replies.

About this Topic