taxonomy ) ? esc_attr( $this->taxonomy ) : 'category'; $args['hide_empty'] = true; if ( $this->show_option_all ) { $this->options[] = esc_html( $this->show_option_all ); } $terms = get_terms( $args ); if ( ! is_wp_error( $terms ) && ! empty( $terms ) ) { foreach ( $terms as $term ) { $this->options[ $term->term_id ] = $term->name; } } } }