Skip to main content

GF_Field_Post_Title

Source: includes/fields/class-gf-field-post-title.php:8

Details​

  • Kind: class
  • Namespace: (global)
  • Extends: GF_Field

Properties​

PropertyTypeDescription
$duplicatableboolWhether there can be more than one of this field type per form.

Methods​

MethodDescription
get_form_editor_field_description()Returns the field's form editor description.
get_form_editor_field_icon()Returns the field's form editor icon.
sanitize_entry_value()Sanitizes the field value before saving to the entry.
get_filter_operators()Returns the filter operators for the current field.

Method Reference​

get_form_editor_field_description()​

public function get_form_editor_field_description()

Returns the field's form editor description.

Returns​

  • string

Since: 2.5

Source: includes/fields/class-gf-field-post-title.php:32

get_form_editor_field_icon()​

public function get_form_editor_field_icon()

Returns the field's form editor icon.

This could be an icon url or a gform-icon class.

Returns​

  • string

Since: 2.5

Source: includes/fields/class-gf-field-post-title.php:45

sanitize_entry_value()​

public function sanitize_entry_value( $value, $form_id )

Sanitizes the field value before saving to the entry.

Parameters​

NameTypeDefaultDescription
$valuestringThe field value to be processed.
$form_idintThe ID of the form currently being processed.

Returns​

  • string

See Also​

Since: 2.2.6.4 (Switched to wp_strip_all_tags.)

Source: includes/fields/class-gf-field-post-title.php:120

get_filter_operators()​

public function get_filter_operators()

Returns the filter operators for the current field.

Returns​

  • array

Since: 2.4

Source: includes/fields/class-gf-field-post-title.php:140