Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Programmatically enable "Did you mean?" search corrections in SearchWP 3.1+
<?php
// Enables "Did you mean?" search corrections in SearchWP.
add_filter( 'searchwp_do_suggestions', function( $enabled, $args ) {
// $args contains the search arguments.
return true;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment