Home › Forums › Feature Requests › Group Options (acf_render_field_wrap) is there an officiel way to do this? › Reply To: Group Options (acf_render_field_wrap) is there an officiel way to do this?
I can’t get this to work. Using it like so in my functions.php file. When I add a print_r($field_group)
It appears below the field settings. So I guess it’s being called too late to be taken into account.
add_action('acf/render_field_group_settings', 'my_function', 10, 1);
function my_function( $field_group ) {
$field_group['style'] = 'seemless';
$field_group['menu_order'] = 1;
$field_group['hide_on_screen'] = array('the_content');
return $field_group;
}
Using version 5.9.3 with wordpress 5.5.3
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.