Skip to content

Instantly share code, notes, and snippets.

Last active August 26, 2016 13:33
What would you like to do?
See for full walkthrough to integrate SearchWP and WooCommerce Order searching
* Let SearchWP index WooCommerce Order Notes
function my_searchwp_indexer_pre_get_comments() {
remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ) );
add_action( 'searchwp_indexer_pre_get_comments', 'my_searchwp_indexer_pre_get_comments' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment