• Resolved potentdevelopment

    (@potentdevelopment)


    I have the following code below and I want to dynamically populate the options with a list of WP registered users, like the author field. How do I go about doing this in my wp.components application?

    <SelectControl multiple={true} label={__('Select secondary authors')} 
            options={ [
                { value: 'a', label: 'User A' },
                { value: 'b', label: 'User B' },
                { value: 'c', label: 'User c' },
            ] }
          />
    • This topic was modified 2 years, 4 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Populating SelectControl Component With List Of Users’ is closed to new replies.