database – How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?

Question

I have a plugin where I want to intercept database changes made during the upgrade process.

It looks like the WordPress Way to do this is with the ‘dbdelta_queries’ filter. The trouble is, my plugin’s main .php file isn’t loaded during the upgrade process, so I can’t hook that filter.

How can I get a plugin to hook a filter — this filter or any filter — during the upgrade process?

0
O. Jones 4 months 2022-08-05T13:53:00-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse