acf/field_group/admin_head

Last updated Feb 17, 2022

Description

Used to output additional <head> HTML to the field group admin edit page.

This action is similar to the WordPress admin_head, except that it is only fired on the field group admin edit page.

Changelog

  • Added in version 4.0.0

Example

This example demonstrates how to output additional inline style and script tags to customize field group settings.

functions.php

<?php
add_action('acf/field_group/admin_head', 'my_acf_field_group_admin_head');
function my_acf_field_group_admin_head() {
    ?>
    <style type="text/css">
        /* CSS here. */
    </style>
    <script type="text/javascript">
    (function( $ ){
        // Javascript here.
    })(jQuery);
    </script>
    <?php
}
Supercharge Your Website With Premium Features Using ACF PRO

Speed up your workflow and unlock features to better develop websites using ACF Blocks and Options Pages, with the Flexible Content, Repeater, Clone, Gallery Fields & More.

Explore Features View Pricing

PRO Features
ACF Blocks
Options Pages
PRO Fields
Repeater
Flexible Content
Gallery
Clone