Created
December 26, 2015 21:06
-
-
Save ajaydsouza/f23f35704431485c6922 to your computer and use it in GitHub Desktop.
Examples of using various filters in Better Search WordPress plugin
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 | |
/** | |
* Filter to override the censor character in Better Search. | |
* | |
* @param string Default censor string | |
* | |
* @return string Censored string | |
*/ | |
function filter_bsearch_censor_char( $censorChar ) { | |
return "*"; | |
} | |
add_filter( 'bsearch_censor_char', 'filter_bsearch_censor_char' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment