Hide field from user group

Support MB Custom Post Type Hide field from user groupResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18864
    BenjBenj
    Participant

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

    #18868
    Long NguyenLong 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.