Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 18, 2015 14:53
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/7ca030c54e734a91ec98 to your computer and use it in GitHub Desktop.
Save jchristopher/7ca030c54e734a91ec98 to your computer and use it in GitHub Desktop.
Prevent SearchWP from removing all hooks to pre_get_posts during indexing
<?php
// prevent SearchWP from calling remove_all_actions( 'pre_get_posts' );
add_filter( 'searchwp_remove_pre_get_posts', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment