Created
October 1, 2019 17:58
-
-
Save lukecav/c80cafe100fb0083a6f0dc4fa68fe0e5 to your computer and use it in GitHub Desktop.
Exclude the Wordfence config database table from being backed up in UpdraftPlus
This file contains 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
add_filter('updraftplus_backup_table', 'my_updraftplus_backup_table', 11, 5); | |
function my_updraftplus_backup_table($go_ahead, $table, $table_prefix, $whichdb, $dbinfo) { | |
$tables_to_not_back_up = array('wp_wfconfig'); | |
if (in_array($table, $tables_to_not_back_up)) return false; | |
return $go_ahead; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wordpress.org/support/topic/wordfence-cause-the-database-can-not-be-imported/
https://updraftplus.com/faqs/how-can-i-exclude-a-specific-table-from-the-backup/
https://www.wordfence.com/help/advanced/remove-or-reset/