Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created October 1, 2019 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukecav/c80cafe100fb0083a6f0dc4fa68fe0e5 to your computer and use it in GitHub Desktop.
Save lukecav/c80cafe100fb0083a6f0dc4fa68fe0e5 to your computer and use it in GitHub Desktop.
Exclude the Wordfence config database table from being backed up in UpdraftPlus
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;
}