title: How do I apply an array of custom taxonomy terms to a searchable dropdown list?
body: <p>I have a searchable dropdown list code.  Here's the code in jsfiddle.
  <a href="https://jsfiddle.net/d9acx502/1/#&amp;togetherjs=LpI6l02DNs" rel="nofollow noreferrer">https://jsfiddle.net/d9acx502/1/#&amp;togetherjs=LpI6l02DNs</a></p>
  
  <p>I have a plugin code that displays the dropdown list (not searchable) on the page.  Here is the code.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        &lt;?php if ( $has_location &amp;&amp; $can_search_by_location ) : ?&gt;
            &lt;!-- Location field --&gt;
     &lt;div class="form-group col-md-4"&gt;
               &lt;label&gt;&lt;?php esc_html_e( 'Select location', 'custom-plugin' ); ?&gt;&lt;/label&gt;
      &lt;?php 
      cp_dropdown_terms(array(
       'show_option_none'  =&gt; '-- ' . esc_html__( 'Select location', 'custom-plugin' ) . ' --',
       'option_none_value' =&gt; (int) $general_settings['base_location'],
       'base_term'         =&gt; max( 0, (int) $general_settings['base_location'] ),
       'parent'            =&gt; max( 0, (int) $general_settings['base_location'] ),
       'taxonomy'          =&gt; 'cp_locations',
       'name'        =&gt; 'l',
       'class'             =&gt; 'form-control',
       'orderby'         =&gt; sanitize_text_field( $locations_settings['orderby'] ), 
       'order'          =&gt; sanitize_text_field( $locations_settings['order'] ),
       'selected'          =&gt; isset( $_GET['l'] ) ? (int) $_GET['l'] : -1
      ));
      ?&gt;
      
      &lt;/div&gt;
           &lt;?php endif; ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I apply the plugin's custom taxonomy array to the dropdown instead of using the  options?</p>