acf/field_group/auto_add_first_field

Last updated Aug 17, 2023

Description

Filter for determining if a new field group should load with a text field automatically. The default behavior for this filter is true, meaning field groups will initialize with a text field automatically.

Changelog

  • Added in version 6.1.7

Example

This example demonstrates how to disable the auto generation of a text field on a newly created field group.

functions.php

<?php
add_filter( 'acf/field_group/auto_add_first_field', '__return_false' );
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