The tabs are part of a settings page, i.e, $settings_pages[]; however, there are not css selectors to target a specific tab.
<h2 class="nav-tab-wrapper">
<a href="#tab-general">General Settings</a>
<a href="#tab-static_images">Static Ad Images</a>
</h2>
Assuming I have a css selector I can target, to hide a settings tab with the css selector .nav-tab-status and the meta field ID that controls the tab is "status" and the select option is "off" this would remove the tab:
add_filter( 'rwmb_outside_conditions', function( $conditions ) {
$conditions['.nat-tab-status'] = array(
'hidden' => array( 'status', '=', 'off' ),
);
return $conditions;
} );
FYI, Although this would not help, I added 'class' -> '.xxx' under the $settings_pages[] array and the class is not added. Does class only work on met box fields?
Also how do you wrap code in this form?