Support

Account

Home Forums Front-end Issues Retrieve a Field Group for a user

Helping

Retrieve a Field Group for a user

  • I have a field group with 17 fields in it that has been connected to my user data for my WordPress registration form.

    I’m wondering how to retrieve the field group values for a specific user as an array. I’m not finding anything in the documentation related to user data, or I’ve missed it.

    I’m trying to collect the data so I can pass it to Active Campaign.

    Feeling a bit confused.

  • figured this out. Found https://www.advancedcustomfields.com/resources/get_fields/ and the // Get values from user ID = 2.
    $user_fields = get_fields( ‘user_2’ );

    example on the page.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Retrieve a Field Group for a user’ is closed to new replies.