diff --git a/includes/class-form.php b/includes/class-form.php index 4bcb165..df62cc7 100644 --- a/includes/class-form.php +++ b/includes/class-form.php @@ -79,6 +79,11 @@ function setup() { add_filter( 'get_search_form', array( $this, 'get_search_form' ), 999, 1 ); add_action( 'wp_footer', array( $this, 'base_styles' ) ); + // WooCommerce widget search integration. + if ( class_exists( 'woocommerce' ) ) { + add_filter( 'get_product_search_form', array( $this, 'get_search_form' ), 999, 1 ); + } + // Gutenberg integration. add_filter( 'wp_footer', array( $this, 'gutenberg_integration' ) );