Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. private function taxonomy_select_field($field = array()) {
  2. if ( isset( $field['label'] ) ) {
  3. $this->label();
  4. }
  5.  
  6. $this->output .= '<div class="ap-form-fields-in">';
  7.  
  8. $taxonomies = wp_dropdown_categories( array(
  9. 'taxonomy' => $field['taxonomy'],
  10. 'orderby' => @$field['orderby'],
  11. 'hide_empty' => 0,
  12. 'hierarchical' => 1,
  13. 'selected' => @$field['value'],
  14. 'name' => @$field['name'],
  15. 'class' => 'ap-form-control',
  16. 'id' => @$field['name'],
  17. 'echo' => false
  18. ) );
  19.  
  20. $this->output .= $taxonomies;
  21.  
  22. $this->error_messages();
  23.  
  24. if ( ! $this->field['show_desc_tip'] ) {
  25. $this->desc();
  26. }
  27.  
  28. $this->output .= '</div>';
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement