Custom Fields
Re-Envisioned
Support Meta Box Include Exclude Ability to add edited_user_role on Field Group

This topic contains 4 replies, has 2 voices, and was last updated by  daveheslop 1 month, 3 weeks ago.

  • Creator
    Topic
  • #15783
    Resolved
    daveheslop
    Participant

    I’ve been trying to add a User field group such that it is only visible when I’m editing the profile of a user with a particular Role.

    I know the functionality exists in the Include Exclude extension, so you can write…

    'include' => [
          'edited_user_role' => 'employer',
    ],

    …to target the profile of an ’employer’ role, for example. This works perfectly.

    HOWEVER, in the Edit Field Group UI, the include/exclude options are:

    1. User Role
    2. User
    3. Custom callback

    Do you know of any way of achieving this via the Edit Field Group UI, without using a custom callback?

    If you’re watching @rilwis, do you intend to add edited_user_role to the list of available include/excludes in the UI? 😀

    Cheers, D

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #15794

    Anh Tran
    Keymaster

    Hi Dave, I’ll add this to the Builder. Please give me some time.

    #15796

    daveheslop
    Participant

    @rilwis Legend 😉

    #15815

    Anh Tran
    Keymaster

    Hi Dave, these params are added to the Builder 3.2.0. Please update.

    #15816

    daveheslop
    Participant

    That was quick! Thanks Anh 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.