title: How to replace deprecated functions from my wordpress code?
body: <p>The function <code>get_all_category_ids()</code> from WordPress it is deprecated so I need to replace with <code>get_terms()</code> but I can't make it work. Can you please help me to make this code to be valid on WordPress 4.0 ? </p>
  
  <pre><code>&lt;label&gt;Choose category&lt;/label&gt;
  &lt;select name="mycategories" &gt;';
  
  $category_ids = get_all_category_ids();
  foreach($category_ids as $cat_id)
  {
      $cat_name = get_cat_name($cat_id);
  
      if($category == $cat_id)
      {
          $html .= '&lt;option selected="selected" value="'.$cat_id.'" '.$cat_name.'&gt;'.$cat_name.'&lt;/option&gt;';
      } else {
          $html .= '&lt;option value="'.$cat_id.'" '.$cat_name.'&gt;'.$cat_name.'&lt;/option&gt;';
      }
  }
  $html.= '&lt;/select&gt;
  </code></pre>