evolve_product_search_form

The evolve evolve product search form function.

Description

evolve_product_search_form( $form ); 

Parameters (1)

0. $form
The form.

Usage

  1. if ( !function_exists( 'evolve_product_search_form' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4. // The form. 
  5. $form = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_product_search_form($form); 
  9.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_product_search_form($form) { 
  2. $form = '<form role="search" method="get" id="searchform" action="' . esc_url(home_url('/')) . '"> 
  3. <div> 
  4. <input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="' . __('Search...', 'evolve') . '" /> 
  5. <input type="hidden" name="post_type" value="product" /> 
  6. </div> 
  7. </form>'; 
  8.  
  9. return $form;