Snippet Wordpress Head Wordpress

Remove Yoast WordPress SEO plugin’s search schema markup from the WordPress head

add_filter( 'disable_wpseo_json_ld_search', '__return_true' );

Add this to your theme’s functions.php to remove the search schema that the Yoast WordPress SEO plugin puts in the WordPress head. Particularly if you’re not using the WordPress search on the site!

Source: