Created
March 7, 2023 10:48
-
-
Save theRealRizeo/71870cd604c98ef1790cf6f3c07fccbd to your computer and use it in GitHub Desktop.
NS Cloner exclude certain tables
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 | |
add_filter( 'ns_cloner_site_tables', 'customer_exclude_ns_cloner_site_tables', 10, 2 ); | |
/** | |
* Exclude certain tables from cloning. | |
* | |
* @param array $tables The selected tables. This contains the prefix | |
* @param int $site_id The site id. | |
* | |
* @return array $tables | |
*/ | |
function customer_exclude_ns_cloner_site_tables( $tables, $site_id ) { | |
// Perform check here to exclude tables. | |
return $tables; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment