$Form
$Form : \EasyInputs\Form|null
Error-free HTML form and input template engine.
EasyInputs provides an error-free universal means of generating HTML form inputs. EasyInputs is a developers-only plugin that provides a helper for generating form inputs. It provides objects that represent both the Form and the Input, standarizing how your HTML form elements are created, speeding development of plugins and themes.
$Form : \EasyInputs\Form|null
__construct(array $args) : void
Giddyup.
This function constructs our EasyInputs class for use in WordPress. Each time a new instance of EasyInputs is created, a new Form class is created. While not all WordPress forms require actual <form> tags, the Form class acts as our model to represent the overall form. It defines what kind of data we're handling, a default name to be applied to the data and a few other details.
array | $args | An array of arguments that instantiates the Form class. Minimally, this array needs to include a 'name', and preferably also a 'type' value. The name is intended to be HTML compatible and is used for certain values unless overridden. The type must be either meta, setting or custom, correlating to the types of supported form elements. |