/searchwp-customizations.php Secret
Created
March 29, 2022 15:06
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