name = 'text'; // do not delete! parent::__construct(); } function render_field($args) { $text_class = 'regular-text'; if (isset($args['field']['text_type']) && in_array($args['field']['text_type'], array('small','regular','large') )) { $text_class = $args['field']['text_type'] . '-text'; } $field_value = $this->get_value($args); echo ''; } } endif;