Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Increase SearchWP's load maximum threshold
<?php
// Increase SearchWP's load maximum threshold to allow loads up to 4 instead of 2.
// @link https://searchwp.com/documentation/hooks/searchwp-background_process-load_maximum/
add_filter( 'searchwp\background_process\load_maximum', function( $max ) {
return 4;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment