Created
April 26, 2019 15:03
-
-
Save jchristopher/a499f3ff479361caef2839fb5212b40d to your computer and use it in GitHub Desktop.
Update SearchWP's attribute label for a post type in the engine configuration UI
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'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment