Skip to content

Instantly share code, notes, and snippets.

Last active April 15, 2021 14:42
What would you like to do?
searchwp_modal_form_trigger( array(
'echo' => true, // Whether to echo
'type' => 'button', // Either 'link' or 'button'
'text' => 'Open Search', // Text of the trigger
'engine' => 'my_searchwp_engine', // SearchWP engine (when applicable)
'template' => 'My Custom Template', // Modal template to use (see docs)
'class' => array(),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment