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

  • 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.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash