Created
March 26, 2020 17:55
-
-
Save jchristopher/5916cb87ab537eeedefdade278b52748 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