Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active January 4, 2016 01:59
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/8552096 to your computer and use it in GitHub Desktop.
Save jchristopher/8552096 to your computer and use it in GitHub Desktop.
Prevent SearchWP from automatically updating it's index when content is added, edited, or deleted. NOTE that you will need to set up a custom WP-Cron job (or some equivalent) to ensure the index is kept up to date.
<?php
// prevent SearchWP from automatically maintaining it's index
add_filter( 'searchwp_background_deltas', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment