To add some add some hooks and filters so it can be used by plugins
Thank you for your great plugin. We have a WordPress plugin that shares file and folders in multisite and it doesn’t need to be copied for every child site.
I wanted to suggest that it will be great if developers can filter files and configuration via WP hooks. Specially in copying files.
I’m referring a hook or filter in nsrecursivedircopy() where:
foreach ($files as $file){
if ($file != “.” && $file != “..” && $file != ‘sites’){
$num = nsrecursivedircopy(“$src/$file”, “$dst/$file”, $num);
}
}
so it can be filtered with hook via our plugin.
Thanks in advance.

We’re happy to announce this is now complete – the new release of NS Cloner 4.0 has a bunch of new actions and filters, including a filter called ‘ns_cloner_dir_copy_ignore’ that will let you easily exclude certain uploads directories from being copied.
Check out the in-progress documentation here: https://neversettle.it/documentation/ns-cloner/hooks-filters-actions/
1 comment
-
Aaron S commented
I just wanted to add that we will be greatly appreciated if you notify us in case this feature is added to NS Cloner so we implement it ASAP.
Thanks ;)