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

?>

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.