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

  • Creator
  • #15783
    Resolved daveheslop

    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
  • #15794
    Anh Tran

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


    @rilwis Legend 😉

    Anh Tran

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


    That was quick! Thanks Anh 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
grid gear info copy caret-up caret-down trash