5, 'blocking' => false, 'headers' => array( 'Authorization' => 'Bearer ' . $settings['key'] ), ) ); } delete_option( 'tourtify_settings' ); delete_option( 'tourtify_cache_version' ); delete_transient( 'tourtify_activated' ); // Cached tours are transients that expire on their own within a day. } if ( is_multisite() ) { // Every site of the network that used the plugin. foreach ( get_sites( array( 'fields' => 'ids', 'number' => 0 ) ) as $tourtify_site_id ) { switch_to_blog( (int) $tourtify_site_id ); tourtify_uninstall_site(); restore_current_blog(); } } else { tourtify_uninstall_site(); }