public static function init() { if (is_null(self::$instance)) { self::$instance = new Alternative_Heap(); } return self::$instance; }
/** * Delete all alternative heap directories and tables on uninstall */ public static function uninstall_cleanup() { require_once 'lib/class-alternative-heap.php'; $alt_heap = Alternative_Heap::init(); // Deleting all tmp plugins directories... $alt_heap->delete_alt_plugins_dirs(); // Deleting all tmp tables... $alt_heap->delete_tmp_wp_tables(); }