Callback Condition / hide a file type

Support MB Conditional Logic Callback Condition / hide a file type

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2409
    SinusiteSinusite
    Participant

    Hi
    I would like to hide a file type field depending on :
    - CPT Custom Taxonomy
    - User Role

    Can I achieve this with CL, it there a way to use something like 'visible' => IsmyFunctionReturnTrue() ?

    Thanks!

    #2424
    Tan NguyenTan Nguyen
    Participant

    Hi Sinusite,

    Thanks for contacting us. We're in progress to add Callback, Custom Taxonomy and User Role support and release this month.

    Please wait a couple days to get the update.

    Thank you and best regards,

    Tan

    #2440
    Tan NguyenTan Nguyen
    Participant

    Btw, for User Role, it only change after page load so you can use PHP condition to work with it. For instance:

    
    if ( current_user_can( 'administrator' ) )
    {
      $meta_boxes = []; // Your meta box
    }
    
    #2456
    Tan NguyenTan Nguyen
    Participant

    Btw, custom callback and custom taxonomy was added in the latest version. Please check and tell me if you have any problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Callback Condition / hide a file type’ is closed to new replies.