name = 'text'; $this->label = __( 'Text', 'cfs' ); } function options_html( $key, $field ) { ?> create_field( array( 'type' => 'text', 'input_name' => "cfs[fields][$key][options][default_value]", 'value' => $this->get_option( $field, 'default_value' ), )); ?> create_field( array( 'type' => 'true_false', 'input_name' => "cfs[fields][$key][options][required]", 'input_class' => 'true_false', 'value' => $this->get_option( $field, 'required' ), 'options' => array( 'message' => __( 'This is a required field', 'cfs' ) ), )); ?>