OP linked it in a comment above, but here’s the code used.
Note This doesn’t actually disable autocomplete, it simply removes all of the results before they’re displayed (and I added some CSS to hide the loading icon). They’re still fetched by WP, just overridden with an empty array.
add_filter( 'wp_link_query', 'remove_results_from_link_builder_autocomplete', 10, 2 );
function remove_results_from_link_builder_autocomplete( $results, $query ) {
return array();
}
You’ll also likely want some CSS to hide the autocomplete loading icon:
input[type=email].ui-autocomplete-loading,
input[type=text].ui-autocomplete-loading {
background-image: none;
}
If you’re also removing this functionality in the Link Builder popup editor (after you click the gear icon), here’s some additional CSS to hide the whole search section.
#wplink-link-existing-content,
#search-panel {
display: none;
}
#wp-link-wrap {
height: 225px;
}