Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active October 21, 2018 15:04
Show Gist options
  • Save jchristopher/6814640f195333522002 to your computer and use it in GitHub Desktop.
Save jchristopher/6814640f195333522002 to your computer and use it in GitHub Desktop.
<?php
// only applies when SearchWP is active
function my_searchwp_live_search_get_search_form_config)() {
return 'my_config';
}
add_filter( 'searchwp_live_search_get_search_form_config', 'my_searchwp_live_search_get_search_form_config' );
@quicoto
Copy link

quicoto commented May 6, 2014

There's an error in the function declaration, right?

Shouldn't it be: my_searchwp_live_search_get_search_form_config()

Cheers.

@jchristopher
Copy link
Author

You are absolutely right and I have no idea how your comment went under my radar since May. Really sorry about that and thank you!

@funkysoul
Copy link

funny, I come across this 4 years later :-D
there's still the same typo :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment