Meta Box
Support Forum
Support › Meta Box Conditional Logic › Callback Condition / hide a file type
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!
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
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 }
Btw, custom callback and custom taxonomy was added in the latest version. Please check and tell me if you have any problem 🙂