Skip to content

Instantly share code, notes, and snippets.

@lkoudal
Forked from tacoverdo/disable_googles_ssb.php
Created February 5, 2022 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkoudal/8b72bd29f9c3bfd02e645b48ca452cb1 to your computer and use it in GitHub Desktop.
Save lkoudal/8b72bd29f9c3bfd02e645b48ca452cb1 to your computer and use it in GitHub Desktop.
Disable Google's Sitelink Search Box in WordPress SEO (Premium)
<?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