Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to close ACF Field Groups by Default
<?php
add_action('acf/input/admin_head', 'my_acf_input_admin_head');
function my_acf_input_admin_head() { ?>
<script type="text/javascript">
jQuery(function($){
$('.acf-postbox').addClass('closed');
});
</script>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.