Overview
This action is called in the head of the edit field group page.
This action is very similar to the WP action admin_head.
Changelog
- Added in v4.0.0
- Previously acf_head-fields in v3.0.0
Usage
You can use this action to add custom css / js to interact with your fields, location rules and options. eg:
functions.php
<?php
function my_acf_field_group_admin_head() {
?>
<style type="text/css">
/* ... */
</style>
<script type="text/javascript">
(function($){
/* ... */
})(jQuery);
</script>
<?php
}
add_action('acf/field_group/admin_head', 'my_acf_field_group_admin_head');
?>