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
| Property | Type | Description |
|---|---|---|
$type | string | Field type. |
$post_type | string | Post type. |
Methods
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$singular | string | Post 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
| Name | Type | Default | Description |
|---|---|---|---|
$plural | string | Post type name (plural) |
Returns
string
Since: 2.6.2
Source: includes/settings/fields/class-post-select.php:156