-
-
Save searchwpgists/0ac25ec7a54a649b6ab7f8dbd1f791cb to your computer and use it in GitHub Desktop.
Prevent input attributes (e.g. placeholder) from being indexed by SearchWP
This file contains 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 | |
// Prevent input attributes (e.g. placeholder) from being indexed by SearchWP. | |
add_filter( 'searchwp\valid_html_tags', function( $tags ) { | |
unset( $tags['input'] ); | |
return $tags; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment