Type to search.

#918 by installs

Disable Search

by Scott ReillyVersion 2.1.1

Disable the built-in front-end search capabilities of WordPress.

Active installs
30,000+
#918 of 1,000
Downloads, all time
436.1K
436,119
Downloads, 30 days
2.8K
722 in the last 7
Rating
4.7 / 5
16 reviews
Last updated
19 months ago
Apr 14, 2025
Version
2.1.1
24 releases

Upkeep and compatibility

Last updatedApril 14, 2025Not updated for over a year
Tested up toWordPress 6.8.12Older than WordPress 7.1.4, the current release
Needs WordPress4.6 or newer
Needs PHPNot stated
First publishedJune 11, 2009
Support, last two monthsNo threads opened

Reviews

4.7 / 5 from 16 reviews

Reviews by star rating
5 stars14
4 stars1
3 stars0
2 stars0
1 star1

Downloads, last 30 days

Low 33 a dayHigh 174 a day

What the author says it does

This plugin prevents WordPress from allowing and handling any search requests from the front-end of the site. Specifically, this plugin:

  • Prevents the search form from appearing if the theme uses the standard get_search_form() function to display the search form.
  • Prevents the search form from appearing if the theme uses a searchform.php template
  • Prevents the search item from appearing in the admin tool bar when shown on the front-end.
  • Disables the search widget.
  • Removes the Search widget from the list of available widgets
  • Deactivates any search widgets currently in use in any sidebars (they are hidden, not deleted; they’ll reappear in their original locations if this plugin gets deactivated)
  • Disables the search block.
  • Removes the Search block from the list of available blocks
  • Deactivates any search blocks currently in use, such as in posts or as a widget (they are disabled, not deleted; they’ll reappear if this plugin gets deactivated and the associated placeholder block doesn’t get deleted)
  • With or without a search form, the plugin prevents any direct or manual requests by visitors, via either GET or POST requests, from actually returning any search results.
  • Submitted attempts at a search will be given a 404 File Not Found response, rendered by your site’s 404.php template, if present.

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Will this disable the search capabilities in the admin section of the blog?

No.

Will this prevent Google and other search engines from searching my site?

No. This only disables WordPress’s capabilities with regards to search.

Search engines index your site and search their index of your site. They do not make use of your site’s native search capabilities. You can only prevent search engines from searching your site by blocking their web crawlers and purging their cache of your site (which is well beyond the scope of this plugin).

Why do I still see a search form on my site despite having activated this plugin?

The most likely cause for this is a theme that has the markup for the search form hardcoded into one or more of the theme’s template files (excluding searchform.php). This is generally frowned upon nowadays (the theme should be calling get_search_form() or using searchform.php to get the search form). There is no way for this plugin to prevent this hardcoded form from being displayed.

Can the front-end search only be selectively disabled, allowing it to appear and work under certain conditions (such as only for logged-in users, etc)?

No, not at this time, though it is feature being considered. (In truth, custom coding could certainly be used to achieve this, but that obviously requires coding knowledge.)

Is this plugin GDPR-compliant?

Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.

Does this plugin have unit tests?

Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the plugin’s GitHub repository.

Latest changelog entry

2.1.1 (2025-04-14)

  • Change: Discontinue unnecessary explicit loading of textdomain
  • Hardening: Ensure translated error message doesn’t contain markup
  • Change: Note compatibility through WP 6.8+
  • Change: Note compatibility through PHP 8.3+
  • Change: Update copyright date (2025)
  • Unit tests:
  • Change: Use expectException() instead of @expectedException comment (for PHPUnit 9 support)

Tagged

Plugins that share its tags

#25 by installs

Classic Widgets

by Tonya Mork

Enables the previous "classic" widgets settings screens in Appearance - Widgets and the Customizer. Disables the block editor from managing widgets.

Installs
2+ million
Rating
4.9 (272)
Updated
11 months ago

#290 by installs

Search Regex

by John Godley

Search Regex adds a powerful set of search and replace functions to WordPress posts, pages, custom post types, and other data.

Installs
100,000+
Rating
4.7 (101)
Updated
25 days ago

#352 by installs

Relevanssi – A Better Search

by Christoph Vielgrader

Relevanssi replaces the default search with a partial-match search that sorts results by relevance. It also indexes comments and shortcode content.

Installs
100,000+
Rating
4.8 (406)
Updated
1 day ago

#362 by installs

Search & Replace

by WP Media

Search & Replace data in your database with WordPress admin, replace domains/URLs of your WordPress installation.

Installs
100,000+
Rating
4.3 (283)
Updated
2 years ago

#366 by installs

String locator

by InstaWP

Find and edit code or texts in your themes and plugins

Installs
100,000+
Rating
4.6 (125)
Updated
32 days ago

#394 by installs

Disable Comments

by rbplugins

Disable Comments - easy tool to disable comments for your blog posts, and pages. Admin can disable comments in just a few clicks.

Installs
100,000+
Rating
3.8 (25)
Updated
36 days ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.