Advanced field types
Four field types that connect PFM records directly to WordPress users, PFM groups, phone numbers, and currencies.
Phone field
Stores a phone number with optional E.164 validation.
| Setting | Default | Description |
|---|---|---|
| Required | no | |
| Default value | (none) | |
| E.164 format | no | Enforce +[country][number] format |
| Unique | no |
- DB column: VARCHAR(32)
- E.164: If enabled, rejects numbers not matching
+[1-9][0-9]{6,14} - Form:
<input type="tel"> - EQL:
:,!=,~=,~^,is null,is not null
Currency field
Stores monetary amounts with ISO 4217 currency codes.
| Setting | Default | Description |
|---|---|---|
| Required | no | |
| Default value | (none) | |
| Default currency | USD | ISO 4217 code |
| Allowed currencies | all | Restrict to specific currency codes |
- DB column: VARCHAR(32)
- Format:
EUR 150.00,USD 99.99(code + space + amount) - Form: Number input with currency code dropdown
- EQL:
:,!=,>=,<=,>,<,is null,is not null(numeric portion only — currency code is ignored in comparisons)
User field
Links a record to a WordPress user.
| Setting | Default | Description |
|---|---|---|
| Required | no | |
| Default value | (none) | Accepts current_user() token |
| Allowed roles | all | Restrict which WP roles can be selected |
- DB column: BIGINT UNSIGNED (stores
wp_users.ID) - Form: Searchable user picker with avatar, name, and email
- Default token:
current_user()pre-fills the logged-in user - List: Shows user display name (clickable link to WP profile)
- EQL:
:,!=,in [...],is null,is not null
Group field
Links a record to a PFM group.
| Setting | Default | Description |
|---|---|---|
| Required | no | |
| Default value | (none) | |
| Allowed groups | all | Restrict which groups can be selected |
- DB column: BIGINT UNSIGNED (stores
wp_pfm_groups.id) - Form: Searchable group picker (accepts group name or slug)
- List: Shows group name
- EQL:
:,!=,in [...],is null,is not null