Used to output additional <head> HTML to pages where ACF fields appear.

This action is similar to the WordPress admin_head, except that it is only fired on pages where ACF fields appear – such as when editing posts, users, taxonomy terms, options pages and front-end forms.


  • Added in version 4.0.0


This example demonstrates how to output additional inline style and script tags to customize fields.


add_action('acf/input/admin_head', 'my_acf_admin_head');
function my_acf_admin_head() {
    <style type="text/css">
        /* CSS here. */
    <script type="text/javascript">
    (function( $ ){
        // Javascript here.

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.