跳转到主要内容

acf/field_group/auto_add_first_field

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' );