Beschreibung
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 still be in the proper locations if this plugin gets deactivated)
- 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 site’s 404.php template, if present.
- Disables output of
SearchAction
in SEO schema by the Yoast SEO plugin.
The plugin only affects search on the front-end of the site. It does not disable searching in the admin section of the site.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Installation
- Install via the built-in WordPress plugin installer. Or download and unzip
disable-search.zip
inside the plugins directory for your site (typicallywp-content/plugins/
) - Aktiviere das Plugin im „Plugins“-Menü in WordPress
FAQ
-
Wird dies die Suchmöglichkeiten im Adminbereich des Blogs deaktivieren?
-
Nein.
-
Wird dies Google oder andere Suchmaschinen vom Durchsuchen meiner Website abhalten?
-
Nein. Dies deaktiviert lediglich die Möglichkeiten von WordPress in Bezug auf die interne Suche.
-
Warum sehe ich immer noch ein Suchformular auf meiner Website, obwohl das Plugin aktiviert ist?
-
Die wahrscheinlichste Ursache hierfür ist ein Theme, bei welchem das Markup für das Suchformular in einer oder mehreren Theme-Template-Dateien (ausgenommen die searchform.php) fest hinterlegt wurde. Das ist heutzutage eigentlich verpönt (das Theme sollte stattdessen
get_search_form()
oder die searchform.php zur Integration des Suchformulars einbinden). Es gibt keinen Weg für dieses Plugin, die Anzeige dieser fest hinterlegten Formulare zu unterbinden.Auch wenn dies der Fall ist, wird das Formular (dank dieses Plugin) nicht funktionieren, es wird lediglich noch angezeigt.
-
Is this plugin GDPR-compliant?
-
Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.
-
Enthält dieses Plugin Unit-Tests?
-
Ja.
Rezensionen
Mitwirkende & Entwickler
„Disable Search“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Disable Search“ wurde in 3 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.
Übersetze „Disable Search“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
1.8.1 (2020-09-07)
- Change: Restructure unit test file structure
- New: Create new subdirectory
phpunit/
to house all files related to unit testing - Change: Move
bin/
tophpunit/bin/
- Change: Move
tests/bootstrap.php
tophpunit/
- Change: Move
tests/
tophpunit/tests/
- Change: Rename
phpunit.xml
tophpunit.xml.dist
per best practices
- New: Create new subdirectory
- Change: Note compatibility through WP 5.5+
1.8 (2020-06-02)
- New: Disable output of
SearchAction
in SEO schema by Yoast SEO. Props @galengidman. - New: Add TODO.md and move existing TODO list from top of main plugin file into it (and add to it)
- Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests
- Change: Note compatibility through WP 5.4+
- Change: Update links to coffee2code.com to be HTTPS
- Unit tests:
- New: Add tests for hooking actions and filters
- New: Add test for backend searches not being affected
- Change: Remove unnecessary unregistering of hooks and thusly delete
tearDown()
1.7.2 (2019-12-12)
- Change: Note compatibility through WP 5.3+
- Change: Unit tests: Change method signature of
assertQueryTrue()
to match parent’s update to use the spread operator - Change: Update copyright date (2020)
Full changelog is available in CHANGELOG.md.