Available since: 3.0
searchwp_index_emoji
View Parameters »Note: You should review this filter before installing SearchWP
By default SearchWP will not index emoji. If your site depends on searching by emoji you can tell SearchWP to index emoji and make emoji searchable with this hook:
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 | |
// Tell SearchWP to index emoji. | |
add_filter( 'searchwp_index_emoji', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$index_emoji |
Boolean |
Whether emoji should be indexed |