Created
April 23, 2025 11:53
-
-
Save JarrydLong/944b271614a75e00f368c9de8fdf4fca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //do not copy | |
add_filter('query', function ($query) { | |
if (strpos($query, 'CREATE TABLE') !== false || strpos($query, 'ALTER TABLE') !== false) { | |
error_log("DBDelta altering query: " . $query); | |
} | |
return $query; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment