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

?>

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.