acf/field_wrapper_attributes
acf/field_wrapper_attributes
Appears in: advanced-custom-fields.6.3.5
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.3.5apply_filters('acf/field_wrapper_attributes') is found 1 times:
- /includes/acf-field-functions.php line 737733734735736737738739740741742743
*
* @param
array
$wrapper
The wrapper attributes
array
.
* @param
array
$field
The field
array
.
*/
$wrapper
= apply_filters(
'acf/field_wrapper_attributes'
,
$wrapper
,
$field
);
// Append conditional logic attributes.
if
( !
empty
(
$field
[
'conditional_logic'
] ) ) {
$wrapper
[
'data-conditions'
] =
$field
[
'conditional_logic'
];
}
if
( !
empty
(
$field
[
'conditions'
] ) ) {