Gravity_Forms\Gravity_Forms\Fields\Config\GF_Field_Address_Frontend_Config
Form specific config for the Address field's copy values functionality.
Since: 3.1.3
Source: includes/fields/config/class-gf-field-address-frontend-config.php:18
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Fields\Config - Extends:
GF_Config
Methods
| Method | Description |
|---|---|
should_enqueue() | Determines if the config data should be enqueued. |
get_copy_values_config() | Gets the Address field copy values configuration. |
data() | Config data. |
enable_ajax() | Enables AJAX loading for the Address field config path. |
Method Reference
should_enqueue()
public function should_enqueue()
Determines if the config data should be enqueued.
Returns
bool
Since: 3.1.3
Source: includes/fields/config/class-gf-field-address-frontend-config.php:30
get_copy_values_config()
public static function get_copy_values_config()
Gets the Address field copy values configuration.
Returns
array
Since: 3.1.3
Source: includes/fields/config/class-gf-field-address-frontend-config.php:79
data()
public function data()
Config data.
Returns
array
Since: 3.1.3
Source: includes/fields/config/class-gf-field-address-frontend-config.php:97
enable_ajax()
public function enable_ajax( $config_path, $args )
Enables AJAX loading for the Address field config path.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$config_path | string | The full path to the config item. | |
$args | array | The args used to load the config data. |
Returns
bool
Since: 3.1.3
Source: includes/fields/config/class-gf-field-address-frontend-config.php:119