Home › Forums › Bug Reports › acf/prepare_field incomplete? › Reply To: acf/prepare_field incomplete?
No advance on that issue?
i tried this
add_filter('acf/prepare_field/type=tab', 'sagive_validate_extra_tabclass', 10);
function sagive_validate_extra_tabclass( $field ){
if( !empty($field['tabclass']) ) {
$field['class'] = 'some-class';
$field['wrapper']['class'] = 'some-class';
}
return $field;
}
Doesnt work (at least on the tab element)… which is where i need it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.