query( "DROP TABLE IF EXISTS {$wpdb->prefix}waysill_queue, {$wpdb->prefix}waysill_scans" ); } /** * Freemius' `after_uninstall` action. Runs only inside Freemius' uninstall hook, which defines WP_FS__UNINSTALL_MODE * and has already checked that the user may manage plugins, so a stray call never deletes data. */ function waysill_uninstall_cleanup(): void { if ( ! defined( 'WP_FS__UNINSTALL_MODE' ) ) { return; } if ( is_multisite() ) { $sites = get_sites( array( 'fields' => 'ids', 'number' => 0, ) ); foreach ( $sites as $site_id ) { switch_to_blog( (int) $site_id ); waysill_uninstall_site(); restore_current_blog(); } } else { waysill_uninstall_site(); } // User meta lives in one table for the whole network. delete_metadata( 'user', 0, 'waysill_check_on_save', '', true ); }