Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Update SearchWP's attribute label for a post type in the engine configuration UI
// 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
You can’t perform that action at this time.