Tag Info

New answers tagged


That was my fault! The problem is copy_dir isn't a WP_Filesystem method, so it cannot be called as an instance of WP_Filesystem like this: $wp_filesystem->copy_dir(), but independently like this: copy_dir("source", "destination") after the WP_Filesystem() has already been called and setup. Reference copy_dir


The short answer is: There is no code that's being excuted The long answer is: You are suppose to define that code in your own plugin space. You add a activated_plugin hook and within the callable function you specify you define the things you want to happen when your plugin is actived, ie: create database, clean options, throw a few switches ...

Top 50 recent answers are included