Disable Search

Author:Scott Reilly
Version:1.0
Last update:07 Jan 2010
Compatibility:WP 2.8+, 2.9+
Comments:go here
Download:[ zip ]
Description:

Disable the search capabilities of WordPress.

Extended Description

Disable the search capabilities of WordPress.

Prevent WordPress from allowing and servicing any search requests for the blog. 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 widget from displaying the search form.
* With or without the 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 sites 404.php template, if present.

Find out more at the plugin’s WordPress Plugin Repository page.


Installation

  1. Unzip ‘disable-search.zip’ inside the ‘/wp-content/plugins/’ directory for your site (or install via the built-in WordPress plugin installer)
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress

Frequently Asked Questions

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

    A: No.


Release Log

  • 07 Jan 2010 : v1.1 — Release Notes. Highlights: adds the disabling/unregistering of the search widget and notes WP 2.9+ compatibility, and drops compatibility with versions of WP older than 2.8
  • 02 Apr 2009 : v1.0 — Initial release

Copyright & Disclaimer

Copyright © 2009 by Scott Reilly (aka coffee2code)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.