Last active
February 5, 2022 14:19
-
-
Save tacoverdo/1b9c482825a7450f4ada to your computer and use it in GitHub Desktop.
Disable Google's Sitelink Search Box in WordPress SEO (Premium)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
// This disables the Google Sitelink Search Box functionality in WordPress SEO (Premium) | |
add_filter('disable_wpseo_json_ld_search', '__return_true'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this. I have also looked through the list of actions and filters on - https://yoast.com/wordpress/plugins/seo/api/ to find out how to modifying schema type from "WebSite" to "WebPage" and customise the "name" parameter. Are there filters for this as well?
We are building a solution based on Wordpress multisite, where subsites are not 'separate websites' but rather webpages under the primary site.