Created
May 28, 2016 18:31
-
-
Save hirejordansmith/32f16967417579099d1a2b791c229eb4 to your computer and use it in GitHub Desktop.
How to close ACF Field Groups by Default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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