Skip to content

Instantly share code, notes, and snippets.

View disable-wordpress-search.php
/*
*
* Start of disabling Search Functionality, in case the request blocker is not active
*
* see also: https://instance-factory.com/?p=1706#disableSearch
*/
function ifb_filter_query($query)
{
if (is_search()) {