For the complete documentation index, see llms.txt. This page is also available as Markdown.

get_acpt_form_field_object

Get a form field object representation

Get a form field object representation.

Usage

$field = get_acpt_form_field_object([
    'formName'  => 'new-form',
    'fieldName' => 'email',
]);

Parameters

Parameter
Type
Required
Description

formName

string

Required

The form name (slug)

fieldName

string

Required

The field name

Return

Type
Description

\stdClass

An object representing the field, including its key, type, label, settings, and extra data

null

If no matching field exists

Last updated