name = 'number_slider'; $this->label = __('Number Slider'); $this->category = __( "jQuery", $this->domain ); // Basic, Content, Choice, etc $this->domain = 'acf-number_slider'; $this->defaults = array ( 'label' => __( 'Choose a Number', $this->domain ) , 'units' => 'Minutes' , 'min_value' => '0' , 'max_value' => '500' , 'increment_value' => '10' ); // do not delete! parent::__construct(); // settings $this->settings = array( 'path' => apply_filters('acf/helpers/get_path', __FILE__) , 'dir' => apply_filters('acf/helpers/get_dir', __FILE__) , 'version' => '2.0.9' ); } /* * create_options() * * Create extra options for your field. This is rendered when editing a field. * The value of $field['name'] can be used (like bellow) to save extra data to the $field * * @type action * @since 3.6 * @date 23/01/13 * * @param $field - an array holding all the field's data */ function create_options( $field ) { $field = array_merge( $this->defaults, $field ); $key = $field['name']; ?>
domain ) );?>
domain ) );?>
domain ) );?>
domain ) );?>