Skip to main content

GF_Fields

Source: includes/fields/class-gf-fields.php:9

Details

  • Kind: class
  • Namespace: (global)

Methods

MethodDescription
get_instance()
get()Alias for get_instance()
get_all()Return all the registered field types.
create()Creates a Field object from an array of field properties.

Method Reference

get_instance()

public static function get_instance( $field_type )

Parameters

NameTypeDefaultDescription
$field_type

Returns

Source: includes/fields/class-gf-fields.php:38

get()

public static function get( $field_type )

Alias for get_instance()

Parameters

NameTypeDefaultDescription
$field_type

Returns

Source: includes/fields/class-gf-fields.php:49

get_all()

public static function get_all()

Return all the registered field types.

Returns

Source: includes/fields/class-gf-fields.php:58

create()

public static function create( $properties )

Creates a Field object from an array of field properties.

Parameters

NameTypeDefaultDescription
$propertiesarray | GF_Field

Returns

Source: includes/fields/class-gf-fields.php:69