# Remove the Search Action From Yoast's WebSite Schema

> Drops the SearchAction (sitelinks search box markup) from the WebSite piece of the Yoast SEO graph, useful when your site search is disabled or poor.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: yoast, schema, search
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/yoast-remove-sitelinks-searchbox/

## Code

```php
add_filter( 'disable_wpseo_json_ld_search', '__return_true' );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the Search Action From Yoast's WebSite Schema" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
