exec(); // Chaining! return $this; } /** * put your comment there... * */ public function expressUninstall() { // Clean up database $this->database(); // Clean up file system! $this->fileSystem(); // Chaining! return $this; } /** * put your comment there... * */ public function fileSystem() { global $wp_filesystem; // Getting directory list! $wpContentDir = WP_CONTENT_DIR; $fSConfig = cssJSToolbox::$config->fileSystem; // Directories to create! $directories = array( "{$wpContentDir}/{$fSConfig->contentDir}", "{$wpContentDir}/{$fSConfig->contentDir}/{$fSConfig->templatesDir}", ); // Delete all directories! foreach ($directories as $dir) { $wp_filesystem->delete($dir, true); } // Chaining! return $this; } } // End class.