GF_Field_Honeypot
The honeypot field used to capture spam.
Since: 2.9.16
Source: includes/fields/class-gf-field-honeypot.php:14
Details
- Kind:
class - Namespace:
(global) - Extends: GF_Field
Properties
| Property | Type | Description |
|---|---|---|
$type | string | The field type. |
Methods
| Method | Description |
|---|---|
get_form_editor_button() | Prevent the field type button appearing in the form editor. |
get_field_input() | Returns the field inner markup. |
Method Reference
get_form_editor_button()
public function get_form_editor_button()
Prevent the field type button appearing in the form editor.
Returns
array
Since: 2.9.16
Source: includes/fields/class-gf-field-honeypot.php:32
get_field_input()
public function get_field_input( $form, $value='', $entry=null )
Returns the field inner markup.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form | array | The form the field is to be output for. | |
$value | string | '' | The field value. |
$entry | null | array | null | Null or the current entry. |
Returns
string
Since: 2.9.16
Source: includes/fields/class-gf-field-honeypot.php:47