query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_' . $prefix ) . '%', $wpdb->esc_like( '_transient_timeout_' . $prefix ) . '%' ) ); } } $aiou_delete = ( defined( 'AIOU_UNINSTALL_DELETE_DATA' ) && AIOU_UNINSTALL_DELETE_DATA ) || 'delete' === get_option( 'aiou_uninstall_data' ); if ( is_multisite() ) { // The choice is made on one site's Plugins screen; apply it network-wide. foreach ( get_sites( array( 'fields' => 'ids' ) ) as $aiou_site ) { switch_to_blog( (int) $aiou_site ); aiou_uninstall_site( $aiou_delete ); restore_current_blog(); } } else { aiou_uninstall_site( $aiou_delete ); }