acf/field_group/admin_head

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

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');

?>

Hi all. Server maintenance scheduled this Sunday 28th May. Learn more