function hocwp_field_html_tag($args = array()) { hocwp_sanitize_field_args($args); $tag = hocwp_get_value_by_key($args, 'tag'); if (empty($tag)) { return; } $id = hocwp_get_value_by_key($args, 'id'); $name = hocwp_get_value_by_key($args, 'name'); hocwp_transmit_id_and_name($id, $name); $html = new HOCWP_HTML($tag); $html->set_class(hocwp_get_value_by_key($args, 'class')); $html->set_attribute_array(hocwp_get_value_by_key($args, 'attributes')); $html->set_id($id); $html->set_text(hocwp_get_value_by_key($args, 'html')); $html->output(); echo hocwp_get_value_by_key($args, 'after_html'); }