Plugin Directory

Disable Search

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

1.4.1 (2015-02-15)

  • Add trivial unit tests for plugin version and class name
  • Note compatibility through WP 4.1+
  • Update copyright date (2015)

1.4 (2013-12-15)

  • Change to hook 'get_search_form' at lower priority so it runs after anything else also using the filter
  • Change to only affect main query
  • Remove admin nag for alerting about the presence of searchform.php in a theme since this no longer matters
  • Add unit tests
  • Note compatibility through WP 3.8+
  • Change minimum required compatibility to WP 3.6
  • Update copyright date (2014)
  • Add banner
  • Many changes to readme.txt documentation (namely to pare out a lot of stuff relating to suppression of searchform.php which has since been made possible in WP core)
  • Change description
  • Change donate link

1.3.1 (unreleased)

  • Don't show searchform.php admin nag if user doesn't have 'edit_themes' cap
  • Add check to prevent execution of code if file is directly accessed
  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.5+
  • Update copyright date (2013)


  • Add notice to main themes and plugins admin pages if active theme has searchform.php template
  • Note compatibility through WP 3.3+
  • Add version() to return plugin version
  • Add more documentation and FAQ questions to readme.txt
  • Add link to plugin directory page to readme.txt
  • Update copyright date (2012)


  • Note compatibility through WP 3.2+
  • Tiny code formatting change (spacing)
  • Fix plugin homepage and author links in description in readme.txt


  • Switch from object instantiation to direct class function invocation
  • Explicitly declare all functions public static
  • Add development note
  • Add additional FAQ question
  • Note compatibility through WP 3.1+
  • Update copyright date (2011)


  • Fix disabling of search widget
  • Move class instantiation inside of if(!class_exists()) check
  • Rename class from 'DisableSearch' to 'c2c_DisableSearch'
  • Store object instance in global variable 'c2c_disable_search' for possible external manipulation
  • Note compatibility with WP 3.0+
  • Minor code reformatting (spacing)
  • Remove documentation and instructions from top of plugin file (all of that and more are contained in readme.txt)
  • Add Upgrade Notice section to readme.txt


  • Disable/unregister search widget
  • Add PHPDoc documentation
  • Minor formatting tweaks
  • Note compatibility with WP 2.9+
  • Drop compatibility with WP older than 2.8
  • Update copyright date
  • Update readme.txt (including adding Changelog)


  • Initial release

Requires: 3.6 or higher
Compatible up to: 4.1.4
Last Updated: 2015-2-16
Active Installs: 4,000+


5 out of 5 stars


1 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,2,2 100,1,1