Custom Fields
Re-Envisioned
Support MB Custom Post Type Hide field from user group

  • Creator
    Topic
  • #18864
    Resolved Benj
    Participant

    Hi is it possible to hide a field from specific user group on the frontend, with builder / shortcodes?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #18868
    Long Nguyen
    Moderator

    Hi,

    It is impossible but when outputting the field value, you can check the user role before with simple code

    if( check_user_role() ) {
        echo rwmb_meta('field_id');
    }

    please following this guide to know the function to check user role.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.