How to copy one folder to another folder recursively
You can make use of the Filesystem API, especially the copy_dir() function – source – does seem to be what you are looking for. Take a look at the docblock from the above source link for a little bit more information: /** * Copies a directory from one location to another via the WordPress Filesystem … Read more