Package/plugin/module WordPress

Disable Search v1.1

I’d like to announce the official release of the updated Disable Search plugin (v1.1) for WordPress.

Disable the search capabilities of WordPress.

For more details, instructions, and the download link, visit the plugin’s official homepage at :

This release primarily adds the disabling/unregistering of the search widget and notes WordPress 2.9+ compatibility, and drops compatibility with versions of WordPress older than 2.8.

Update: Plugin updated to v1.1.1 (see comment below for more information)

Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.

Read more for a detailed ChangeLog of the release.

Detailed ChangeLog

These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.

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

3 replies on “Disable Search v1.1”

Plugin has been updated to v1.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

Really a great plugin, but could you please add support for a complete blank query string. Some thing like the following code:

function blank_search($query) {
  global $wp_query;
  if ( isset( $_GET['s'] ) && $_GET['s'] == '' ) {
  return $query;

add_action( 'pre_get_posts', 'blank_search' );

Comments are closed.