Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active April 15, 2021 14:42
Show Gist options
  • Save jchristopher/1652ebdf43ea9bd275e22888e0cdb6e5 to your computer and use it in GitHub Desktop.
Save jchristopher/1652ebdf43ea9bd275e22888e0cdb6e5 to your computer and use it in GitHub Desktop.
<?php
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