acf/input/admin_head

Overview

This action is called in the head of all pages where fields are rendered. Eg: page / post edit screen, front end form, options page, etc.

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. eg:

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

		/* ... */

	</style>

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

		/* ... */

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

add_action('acf/input/admin_head', 'my_acf_admin_head');

?>

Related