• ronod

    (@ronod)


    I’m writing a plugin that reads a shortcode from a post. The shortcode callback then places that data in a mysql table, then deletes the post.
    My question is: what hook to use to insure that all the above has happened before the next step in the code that utilizes the table data?
    Thanks in advance.
    Ron

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The action ‘transition_post_status’ fires when the post is published and deleted, among other things. Your code would need to check that it fired for the reason you are interested in.

    Thread Starter ronod

    (@ronod)

    thanks, I’ll try it!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘plugin execution order’ is closed to new replies.