Hello Nguyen, Thanks for your reply. You told whole metabox in condition but I want to show/hide one field for depend on one customizer setting. So how can do it?
For example:
I want to show/hide toolbar option depend on this customizer field:
get_theme_mod( 'orphan_toolbar'); // This return true/false
I want visible this metabox field when i get true from get_theme_mod( 'orphan_toolbar'). My field code look like:
array(
'name' => 'Toolbar',
'id' => $prefix . "toolbar",
'type' => 'checkbox',
'desc' => 'Enable or disable the toolbar for this page.',
'tab' => 'layout',
'visible' => [what condition i need to set for it?],
),