Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize AND fields per post type in SearchWP
<?php
add_filter( 'searchwp_and_fields_post', function( $and_fields, $engine ) {
// TODO: Customize $and_fields to match what you want for Posts (and not other post types).
// @link https://searchwp.com/docs/hooks/searchwp_and_fields/
return $and_fields;
}, 20, 2 );
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.