- This topic has 2 replies, 2 voices, and was last updated 1 year, 3 months ago by .
-
Topic
-
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' ] ]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.