Gravity_Forms\Gravity_Forms\Settings\Fields
Source: includes/settings/class-fields.php:10
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Settings
Methods
| Method | Description |
|---|---|
create() | Initialize a new Settings field. |
exists() | Determine if field type exists. |
register() | Register a new Settings field type. |
Method Reference
create()
public static function create( $props, $settings )
Initialize a new Settings field.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$props | array | Base | ||
$settings | \Gravity_Forms\Gravity_Forms\Settings\Settings | Settings instance. |
Returns
Fields\Base| WP_Error
Since: 2.5
Source: includes/settings/class-fields.php:31
exists()
public static function exists( $type )
Determine if field type exists.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$type | string | Field type. |
Returns
bool
Since: 2.5
Source: includes/settings/class-fields.php:69
register()
public static function register( $type, $class_name )
Register a new Settings field type.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$type | string | Field type. | |
$class_name | string | Class name. |
Returns
bool| WP_Error
Since: 2.5
Source: includes/settings/class-fields.php:85