acf/field_wrapper_attributes
acf/field_wrapper_attributes
Appears in: advanced-custom-fields.6.0.4
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.0.4apply_filters('acf/field_wrapper_attributes') is found 1 times:
- /includes/acf-field-functions.php line 731727728729730731732733734735736737
*
* @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'
] ) ) {