/home/techb158/public_html/wp-content/plugins/kirki/customizer/packages/controls/tabs/src
Edit: /home/techb158/public_html/wp-content/plugins/kirki/customizer/packages/controls/tabs/src/Init.php (2080B)
$section,
'data-kirki-parent-tab-item' => isset( $args['tab'] ) ? $args['tab'] : '',
);
if ( isset( $args['wrapper_attrs'] ) ) {
$args['wrapper_attrs'] = array_merge( $args['wrapper_attrs'], $tab_wrapper_attrs );
} else {
$args['wrapper_attrs'] = $tab_wrapper_attrs;
}
}
}
return $args;
}
/**
* Add the tab by creating custom control using Kirki API.
*
* @since 1.0.0
*
* @param string $section_id The The section id.
* @param array $args The section args.
*/
public function add_tab( $section_id, $args ) {
if ( ! isset( $args['tabs'] ) ) {
return;
}
new \Kirki\Field\Tabs(
[
'settings' => 'kirki_tabs_' . $section_id,
'section' => $section_id,
'priority' => 0,
'choices' => [
'tabs' => $args['tabs'],
],
]
);
}
}