Hook or action after data insertion in custom table?
-
Hey @Abhishek,
I’m trying to find out if there’s a hook or action that triggers after new data is inserted or updated in a custom table. I’ve tried using wp_after_insert_post and transition_post_status, but they don’t seem to work as expected.When using wp_after_insert_post, the update doesn’t reflect the latest changes.
And with transition_post_status, I find issues when data is inserted for the first time; the hook triggers before the data is created in the custom table.
Do you have any suggestions? Appreciate your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hook or action after data insertion in custom table?’ is closed to new replies.