Hi Anh,
Were using 3 tabs and like to display only two. But when we choose one of the radio buttons in the first tab we like to display the 3 tab. Is this possible?
We tried this, but with no result:
$meta_boxes[] = [
'id' => '...',
'title' => '...',
'post_types' => '...',
'context' => 'normal',
'priority' => 'high',
'tab_style' => 'box',
'tab_wrapper' => false,
'tabs' => [
'details' => [
'label' => 'Details',
'icon' => 'dashicons-admin-generic',
],
'location' => [
'label' => 'Location',
'icon' => 'dashicons-location-alt',
],
'recurring' => [
'label' => 'Recurring',
'icon' => 'dashicons-update',
'visible' => [ 'duration_frequency', '=', 'recurring'],
],
]
]
The field on which it should display or not:
[
'tab' => 'details',
'id' => 'duration_frequency',
'name' => 'Event duration',
'type' => 'button_group',
'options' => [
'single' => 'Single day',
'multiple' => 'Multi day',
'recurring' => 'Recurring'
]
]