Skip to content

[09:49 AM EST]

Based on the screenshots you shared, here’s a breakdown of the ACF fields you just added and what they do:


đź§© 1. UserPhoneNumber

📌 Purpose: Stores the user’s phone number.

Details:

  • Field Label: UserPhoneNumber
  • Field Name: userphonenumber
  • Field Type: Number
    ➤ This restricts the input to numeric values only (not ideal for phone numbers with +, (), or - symbols).
  • Location Rule: User Form is equal to All
    ➤ This means the phone number field will show up on all user profile pages (admin edit and front-end if applicable).

✅ Effect: This field is available when editing a user’s profile and will be saved with the user meta under the key userphonenumber.


🖼️ 2. userimage

📌 Purpose: Stores a user profile image (avatar-like).

Details:

  • Field Label: userimage
  • Field Name: userimage
  • Field Type: Image
  • Return Format: Image Array
    ➤ This gives you access to image URL, ID, alt text, sizes, etc.
  • Library: All
    ➤ User can pick from any media in the media library.

âś… Effect: Allows assigning an image to a user (can be used for avatars, directory displays, etc.) and stores it in user meta as userimage.


🔥 Recommendations

⚠️ userphonenumber Field Type

  • Since phone numbers can contain characters like +1, -, (), and spaces, change the Field Type from Number → Text.
    • Why? ACF will strip out non-numeric characters in Number type, breaking formatting or international numbers.

✅ Better: Use “Text” with Validation

  • Use field type: Text
  • Then add a pattern like:
    ^[0-9-+()s]{7,20}$
    in the Validation > Custom Pattern if you want formatting validation.