Home › Forums › Backend Issues (wp-admin) › Filter display options for field group? › Reply To: Filter display options for field group?
Good question. I haven’t tried to do this, so I’m not 100% if it is possible, but there are 2 filters which you may find useful.
You will find all the source code in ‘core/controllers/field_group.php’.
The first filter is ‘acf/get_field_groups’
Hooking into this may allow you to re-order the array and place your field group in question at the start of the array. ACF will then use it’s CSS over any others
The other is ‘acf/field_group/get_options’
This will allow you to customize the hide_on_screen array for any field group. Perhaps you could override all field groups settings?
Thanks
E
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.