• Hello.
    I want to ask if there is a code block that i can use to get all the options from a select or dropdown field in Ultimate Member.

    Thank u.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @gioiliop7

    Can you please explain a bit in detail so that it’s easy to understand what exactly you are looking for?

    Thread Starter Giorgos Iliopoulos

    (@gioiliop7)

    I have a select (dropdown) field on registration form with some options.
    Can i take the options in my functions as array for example?

    @gioiliop7

    Yes you can by using:

    $array = UM()->fields()->get_field( $meta_key );

    The dropdown values are located as an array in $array['options']

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @gioiliop7,

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dropdown choices’ is closed to new replies.