Last active
July 31, 2019 14:51
-
-
Save Trovin/bf15f09437bc4fe71ea9c4bb04837b64 to your computer and use it in GitHub Desktop.
ACF hide all field by default
This file contains hidden or 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
/** | |
* Hide all ACF field by default | |
*/ | |
add_action('acf/input/admin_head', 'my_acf_input_admin_head'); | |
function my_acf_input_admin_head() { ?> | |
<script type="text/javascript"> | |
jQuery(function(){ | |
jQuery('.acf-postbox').addClass('closed'); | |
}); | |
</script> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment