Skip to main content

GF_Field_Post_Excerpt

Source: includes/fields/class-gf-field-post-excerpt.php:7

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.
get_value_merge_tag()Format the entry value for when the field/input merge tag is processed. Not called for the {all_fields} merge tag.
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-excerpt.php:31

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-excerpt.php:44

get_value_merge_tag()​

public function get_value_merge_tag( $value, $input_id, $entry, $form, $modifier, $raw_value, $url_encode, $esc_html, $format, $nl2br )

Format the entry value for when the field/input merge tag is processed. Not called for the {all_fields} merge tag.

Return a value that is safe for the context specified by $format.

Parameters​

NameTypeDefaultDescription
$valuestring | arrayThe field value. Depending on the location the merge tag is being used the following functions may have already been applied to the value: esc_html, nl2br, and urlencode.
$input_idstringThe field or input ID from the merge tag currently being processed.
$entryarrayThe Entry Object currently being processed.
$formarrayThe Form Object currently being processed.
$modifierstringThe merge tag modifier. e.g. value
$raw_valuestring | arrayThe raw field value from before any formatting was applied to $value.
$url_encodeboolIndicates if the urlencode function may have been applied to the $value.
$esc_htmlboolIndicates if the esc_html function may have been applied to the $value.
$formatstringThe format requested for the location the merge is being used. Possible values: html, text or url.
$nl2brboolIndicates if the nl2br function may have been applied to the $value.

Returns​

  • string

Since: Unknown

Source: includes/fields/class-gf-field-post-excerpt.php:132

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-excerpt.php:166