Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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

This comment has been minimized.

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

This comment has been minimized.

Owner

jchristopher commented Aug 12, 2014

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

This comment has been minimized.

funkysoul commented Oct 21, 2018

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