Custom Fields
Re-Envisioned
Support MB User Meta Using with Include_Exclude doesn't work

This topic contains 5 replies, has 2 voices, and was last updated by  Anh Tran 2 years, 5 months ago.

  • Creator
    Topic
  • #4241
    Resolved
    ChrisLowrance
    Participant

    Hey,

    I’ve been trying to use this to hide User Meta fields depending on user role. Oddly, it works to prevent Meta Box’s CSS files from loading, but does not remove the meta box html.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #4261

    Anh Tran
    Keymaster

    Hi Chris, let me check it and will get back to you.

    #4384

    ChrisLowrance
    Participant

    Any update on this?

    #4387

    Anh Tran
    Keymaster

    I have a solution for that, but it requires both the core plugin and the extension to update. I’m thinking about backward compatibility.

    #4388

    ChrisLowrance
    Participant

    Thanks!

    In the meantime, it works to wrap the metabox array within an if (current_user_can) condition.

    #4390

    Anh Tran
    Keymaster

    Yes, that would work, too. I’m refactoring the code to make it better 🙂

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

You must be logged in to reply to this topic.