Property | Type | Description | |
---|---|---|---|
$settings | array |
Method | Description | |
---|---|---|
__construct ( string $label, string $name, string $key, array $base_settings = [], array $custom_settings = [] ) | ||
get_setting ( $key, string $default_value = '' ) : string | ||
get_settings ( fewbricks\acf\field-groups | |
||
set_setting ( $key, $value ) | ||
set_settings ( $settings ) |
Method | Description | |
---|---|---|
prepare_label ( $object_to_prepare_for ) | ||
prepare_label_addition ( |
||
prepare_name ( |
||
prepare_settings ( $object_to_prepare_for ) |
public __construct ( string $label, string $name, string $key, array $base_settings = [], array $custom_settings = [] ) | ||
$label | string | The label that the field will get. |
$name | string | The name that the field will get. |
$key | string | The key that the field wil get. It is very important that this value is unique among all the keys across the entire site. |
$base_settings | array | |
$custom_settings | array | Any custom settings that you want to set. A setting must be implemented in the ACF field class for it to have an effect. This array wil be merged with $base_settings in this class and then with the default settings in the ACF field class. |
public get_setting ( $key, string $default_value = '' ) : string | ||
$key | ||
$default_value | string | |
return | string |
public get_settings ( fewbricks\acf\field-groups | |
||
$object_to_get_for | fewbricks\acf\field-groups | |
|
return | array |