args = array_merge( array( 'taxonomy' => 'category', ), $this->args ); } /** * Output input. * * @param string|array $value * @return string */ public function outputInput( $value = null, $view = null ) { $this->args['class'] = ( isset( $this->args['class'] ) ? $this->args['class'] : '' ) . ' cuztom-input--select cuztom-input--term-select'; $this->args['echo'] = 0; $this->args['name'] = $this->getName(); $this->args['id'] = $this->getId(); $this->args['selected'] = ! Cuztom::isEmpty( $value ) ? $value : $this->default_value; return wp_dropdown_categories( $this->args ); } }