$name
$name :
The name of the instance of EasyInputs\Form\Input
A class defining the HTML form element.
The Input class of Easy Inputs is instatiated with every new input created. What is returned is always a string. The create() function is used as the main entry point to the Input class, calling the function specified by the $args element 'type'. As a default, all Inputs are created as text inputs unless a specfic type is requested in that element.
nonce() : string
Return a WP Settings API nonce field.
Port of the wp_nonce_field function. Don't over-think it. Just let WordPress handle creating the nonce. This function returns, rather than outputs, the nonce, in case we need to do something further before output.
The output of the wp_nonce_field function.
__construct(string $name = null, array $args = array(), \EasyInputs\EasyInputs\Form $form = null) : mixed
Construct our Object
The $args array includes all the required values to construct an HTML element.
string | $name | The name of the field. |
array | $args | Either a string for the name of the field, or else an array of input arguments containing the above static values. |
\EasyInputs\EasyInputs\Form | $form | An instance of the Easy Inputs form class. |
HTML containing a legend or null.