name = 'color-input'; $this->public = false; $this->label = __( 'Color', 'frontend-admin' ); $this->defaults = array( 'default_value' => '', ); } /* * render_field_settings() * * 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 * * @param $field - an array holding all the field's data * * @type action * @since 3.6 * @date 23/01/13 */ function render_field_settings( $field ) { // default_value acf_render_field_setting( $field, array( 'label' => __( 'Default Value', 'frontend-admin' ), 'instructions' => __( 'Appears when creating a new post', 'frontend-admin' ), 'type' => 'color', 'name' => 'default_value', 'dynamic_value_choices' => 1, ) ); } } endif; // class_exists check