acf_head-input

Overview

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

Description

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…

You can think of this function the same as admin_head but only for ACF input pages.

Usage

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

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

You can think of this function the same as admin_head but only for ACF input pages.

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

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

		/* ... */

	</style>

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

		/* ... */

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

add_action('acf_head-input', 'my_head_input');

?>

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.