0

I am trying to dynamically get the post's tags as the user adds them while editting a post, but I have not found any hook related to that action.

I know I can make my own hooks, but the thing is that I can not edit the theme, so I can not make it that way (or I have not found a proper one)

The idea is to be able to get the tags as the user adds or deletes them, but I'm getting crazy with such a silly thing.

WP_tags_metabox

Thanks!

1
  • It would be easier to hook in when the post is saved, rather than as they are added. I doubt there is a hook for when they are added simply because that info is not saved until the entire post is saved.
    – WebElaine
    Commented Sep 15, 2017 at 15:49

1 Answer 1

0

I know this is but a patch, but i followed WebElaine advise and hooked my function to the "save_post" hook. As I wanted my plugin to be used while editing the post, I have added button to update the tags that actually saves the post.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.