Available since: 2.9
searchwp_supports_label_{post_type}_{support}
View Parameters »From time to time WordPress plugins or themes will adapt various content types for entries for their own use. Using this hook you can reflect that adaptation in the label SearchWP uses when adding entry attributes to the engine configuration interface:
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 | |
// Update SearchWP 'Comments' label for Products because they're used as Reviews. | |
// (this is done automatically in the SearchWP WooCommerce Integration Extension) | |
add_filter( 'searchwp_supports_label_product_comments', function( $label ) { | |
return 'Reviews'; | |
} ); |
Parameters
Parameter | Type | Description |
---|---|---|
$label |
String |
The label to use |