name = 'number'; $this->label = __("Number",'acf'); $this->defaults = array( 'default_value' => '', 'min' => '', 'max' => '', 'step' => '', 'placeholder' => '', 'prepend' => '', 'append' => '' ); // do not delete! parent::__construct(); } /* * create_field() * * Create the HTML interface for your field * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function create_field( $field ) { // vars $o = array( 'id', 'class', 'min', 'max', 'step', 'name', 'value', 'placeholder' ); $e = ''; // step if( !$field['step'] ) { $field['step'] = 'any'; } // prepend if( $field['prepend'] !== "" ) { $field['class'] .= ' acf-is-prepended'; $e .= '