Skip to main content

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

PropertyTypeDescription
$typestringThe field type.

Methods

MethodDescription
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

NameTypeDefaultDescription
$formarrayThe form the field is to be output for.
$valuestring''The field value.
$entrynull | arraynullNull or the current entry.

Returns

  • string

Since: 2.9.16

Source: includes/fields/class-gf-field-honeypot.php:47