gravityhopper/first_in_add_fields

Description

Set fields to appear first when consolidating the field groups.

Usage

Filter fields which appear first by including and ordering in the returned array

add_filter( 'gravityhopper/first_in_add_fields', 'my_custom_callback' );

Parameters

first_fields : array

The array of field type slugs for fields which should appear first in the Add Fields tab.

Examples

Set field buttons to appear first

add_filter( 'gravityhopper/first_in_add_fields', function( $first_fields ) {

    return array( 'uid', 'event', 'map', 'fileupload', 'consent' );

} );