'parent', 'id' => 'term_id' );
function __construct( $field ) {
$this->field = $field;
}
function start_el( &$output, $term, $depth = 0, $args = array(), $current_object_id = 0) {
// vars
$selected = in_array( $term->term_id, $this->field['value'] );
// append
$output .= '
';
}
function end_el( &$output, $term, $depth = 0, $args = array() ) {
// append
$output .= '' . "\n";
}
function start_lvl( &$output, $depth = 0, $args = array() ) {
// append
$output .= '' . "\n";
}
function end_lvl( &$output, $depth = 0, $args = array() ) {
// append
$output .= '
' . "\n";
}
}
endif;
?>