Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

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.

SettingDefaultDescription
Requiredno
Default value(none)
E.164 formatnoEnforce +[country][number] format
Uniqueno
  • 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.

SettingDefaultDescription
Requiredno
Default value(none)
Default currencyUSDISO 4217 code
Allowed currenciesallRestrict 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.

SettingDefaultDescription
Requiredno
Default value(none)Accepts current_user() token
Allowed rolesallRestrict 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.

SettingDefaultDescription
Requiredno
Default value(none)
Allowed groupsallRestrict 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