actions – Hook for inserting?


I’m using a plugin that doesn’t provide many hooks for its actions. I would like to be able to hook in when the plugin adds a row to a plugin-specific table, and update some other data elsewhere. (For context, it’s a CRM. Whenever a log is added to its logs table, I would also like to update the CRM users table, updating the status column for the user associated to the log.)

I know there are hooks like pre_get_posts to modify a main query. However, since the insert isn’t a get_posts() query, I am looking for something similar that fires when data is inserted, and then I’ll narrow it down to only when data is inserted into this particular table.

WebElaine 2 years 2022-07-27T10:27:54-05:00 0 Answers 0 views 0

Leave an answer