render_type_row($row, $term_id); } if ($column_name == 'aff_unit') { $row = $this->render_unit_row($row, $term_id); } return $row; } /** * Render the type row into the detail template admin table. * * @since 0.9.22 * @param string $row The admin table column row content. * @param int $term_id The term of the current row. * @return string The filtered row content. */ protected function render_type_row($row, $term_id) { $raw_type = carbon_get_term_meta($term_id, Carbon_Attribute_Template_Repository::TYPE); if (!empty($raw_type)) { $type = new Type($raw_type); $label = $type->get_label(); $row .= sprintf( '%s', esc_html($label) ); } return $row; } /** * Render the unit row into the detail template admin table. * * @since 0.9.22 * @param string $row The admin table column row content. * @param int $term_id The term of the current row. * @return string The filtered row content. */ protected function render_unit_row($row, $term_id) { $raw_type = carbon_get_term_meta($term_id, Carbon_Attribute_Template_Repository::UNIT); if (!empty($raw_type)) { $type = new Unit($raw_type); $value = $type->get_value(); $row .= sprintf( '%s', esc_html($value) ); } return $row; } }