Created
May 11, 2020 15:36
-
-
Save lukecav/b3470b0f9e085f8b651bc29657916912 to your computer and use it in GitHub Desktop.
Preserve MainWP option values for connections if using WP Migrate DB Pro
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( 'wpmdb_preserved_options', function( $options ) { | |
$opts = [ | |
'mainwp_child_uniqueId', | |
'mainwp_child_pubkey', | |
'mainwp_child_server', | |
'mainwp_child_nonce' | |
]; | |
return array_merge($options, $opts); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wordpress.org/plugins/preserve-mainwp/
https://deliciousbrains.com/tweaking-wp-migrate-db-pro-actions-filters/