Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 26, 2019 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/a499f3ff479361caef2839fb5212b40d to your computer and use it in GitHub Desktop.
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
<?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