acf_head-fields

Overview

This action works on version 3.5.8.2 and below. If using version 4, please use acf/field_group/admin_head

Description

This action is called in the head of the edit field group page.

You can think of this function the same as admin_head but only for the ACF edit field group page.

Usage

You can use this action to add custom css / js to interact with your fields / location rules / options. eg:

function my_head_fields()
{
	?>
	<style type="text/css">

		/* ... */

	</style>

	<script type="text/javascript">
	(function($){

		/* ... */

	})(jQuery);
	</script>
	<?php
}

add_action('acf_head-fields', 'my_head_fields');

?>