VA_Widget::form_fields()

Retrieves form fields in scbForm format.


Package


Description Description

Examples of definition some specific fields:

  1. Number field

    array( ‘type’ => ‘number’, ‘name’ => ‘mynumber’, ‘desc’ => __( ‘Number to show:’, APP_TD ), ‘extra’ => array( ‘class’ => ‘widefat’, ‘min’ => 1, ‘max’ => 100, ‘step’ => 1, ), ),

  2. Color Picker array( ‘type’ => ‘colorpicker’, ‘name’ => ‘mycolorpicker’, ‘desc’ => __( ‘My Color:’, APP_TD ), ‘extra’ => array( ‘data-default-color’ => ‘#f1ff1f’, ‘class’ => ‘color-picker-hex’, ), ),


Return Return

(array) Form fields array.


Premium WordPress Apps