Skip to main content

GF_Field_Post_Content

Source: includes/fields/class-gf-field-post-content.php:9

Details

Properties

PropertyTypeDescription
$duplicatableboolWhether there can be more than one of this field type per form.
$repeatableboolWhether the field can be used in a repeater.

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.
filter_user_option_rich_editing()Filter the rich_editing option for the current user.

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-content.php:42

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-content.php:55

filter_user_option_rich_editing()

public function filter_user_option_rich_editing( $value )

Filter the rich_editing option for the current user.

Parameters

NameTypeDefaultDescription
$valuestringThe value of the rich_editing option for the current user.

Returns

  • string

Since: 2.2.5.14

Source: includes/fields/class-gf-field-post-content.php:97