get_error_message() ) ); } $attr['options'] = []; foreach ( (array) $tax_arrays as $tax_obj ) { if ( ! is_object( $tax_obj ) ) { continue; } $attr['options'][ $tax_obj->term_id ] = $tax_obj->name; } return parent::render_options( $attr ); } }