Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Override Default Search with WooCommerce Product Search
<?php
if ( function_exists( 'woocommerce_product_search' ) ) {
echo woocommerce_product_search();
} else {
//the original contents of search.php should follow
//make sure to close the php tag as appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment