Title: plugin execution order
Last modified: August 20, 2016

---

# plugin execution order

 *  [ronod](https://wordpress.org/support/users/ronod/)
 * (@ronod)
 * [14 years ago](https://wordpress.org/support/topic/plugin-execution-order-1/)
 * 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](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [14 years ago](https://wordpress.org/support/topic/plugin-execution-order-1/#post-2756014)
 * 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](https://wordpress.org/support/users/ronod/)
 * (@ronod)
 * [14 years ago](https://wordpress.org/support/topic/plugin-execution-order-1/#post-2756032)
 * thanks, I’ll try it!

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

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [ronod](https://wordpress.org/support/users/ronod/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-execution-order-1/#post-2756032)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
