$fileinfo ) { if ( $fileinfo->isDir() ) { if ( ! rmdir( $fileinfo->getRealPath() ) ) { return false; } } else { if ( ! unlink( $fileinfo->getRealPath() ) ) { return false; } } } return rmdir( $dir ); } ss_rrmdir_uninstall( $ss_root ); // Delete Simply Static's settings after filesystem cleanup. delete_option( 'simply-static' ); // Drop DB tables used by Simply Static. require_once plugin_dir_path( __FILE__ ) . 'src/class-ss-plugin.php'; require_once plugin_dir_path( __FILE__ ) . 'src/models/class-ss-model.php'; require_once plugin_dir_path( __FILE__ ) . 'src/models/class-ss-page.php'; Simply_Static\Page::drop_table();