Stop automatic WordPress plugin search as you type

This bad bit of JavaScript will stop the auto-search-as-you-type feature on the WordPress Plugins > Add New screen:

var e = jQuery._data( jQuery('.wp-filter-search')[0] , "events" ); delete(e.keyup); e.input2 = e.input; delete(e.input); jQuery('.wp-filter-search').keypress(function(e) { if(e.which == 13) { jQuery(this).trigger('input2'); } });


edit: Hey cool @srikat made a plugin out of it 🙂 https://github.com/srikat/Disable-Dynamic-Plugin-Install-Search

Leave a Reply

Your email address will not be published. Required fields are marked *