-
-
Save billerickson/4b3e15a7166728a64a6231e4c70da135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// The standard search form | |
$form = get_search_form( false ); | |
// Let's add a hidden input field | |
$form = str_replace( '<input type="submit"', '<input type="hidden" name="post_type" value="video"><input type="submit"', $form ); | |
// Display our modified form | |
echo $form; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment