Field::__construct( string $form_name, string $name, array $args )
Description #
Initialize the class.
Parameters #
- $form_namestring (Required) Name of parent form.
- $namestring (Required) Name of field.
- $argsarray (Required) Field arguments.
Source #
File: lib/form/class-field.php
public function __construct( $form_name, $name, $args ) { $this->original_name = $name; $this->field_name = $form_name . '[' . $name . ']'; $this->form_name = $form_name; $this->args = $args; $this->field_id = $this->id(); $this->prepare(); }
Expand full source code Collapse full source code View on GitHub: lib/form/class-field.php:159
Add your comment