Skip to main content

Gravity_Forms\Gravity_Forms\Settings\Fields\Post_Select

Source: includes/settings/fields/class-post-select.php:9

Details​

  • Kind: class
  • Namespace: Gravity_Forms\Gravity_Forms\Settings\Fields
  • Extends: Select

Properties​

PropertyTypeDescription
$typestringField type.
$post_typestringPost type.

Methods​

MethodDescription
markup()Render field.
get_dropdown_label()Get the label for the dropdown.
get_search_label()Get the label for the search field.

Method Reference​

markup()​

public function markup()

Render field.

Returns​

  • string

Since: 2.6.2

Source: includes/settings/fields/class-post-select.php:39

get_dropdown_label()​

public function get_dropdown_label( $singular )

Get the label for the dropdown.

Parameters​

NameTypeDefaultDescription
$singularstringPost type name (singular)

Returns​

  • string

Since: 2.6.2

Source: includes/settings/fields/class-post-select.php:136

get_search_label()​

public function get_search_label( $plural )

Get the label for the search field.

Parameters​

NameTypeDefaultDescription
$pluralstringPost type name (plural)

Returns​

  • string

Since: 2.6.2

Source: includes/settings/fields/class-post-select.php:156