WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Disable Search

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

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)

1.3

  • 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)

1.2.1

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

1.2

  • 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)

1.1.1

  • 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

1.1

  • 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)

1.0

  • Initial release

Requires: 3.6 or higher
Compatible up to: 3.8.3
Last Updated: 2013-12-15
Downloads: 12,874

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
100,1,1
100,2,2
100,2,2 100,1,1
100,1,1
100,1,1
0,1,0
0,1,0