choices['tabs'] ) ? $this->choices['tabs'] : []; $tab_menu = ''; $loop_index = 0; foreach ( $tabs as $tab_id => $tab_args ) { $loop_index++; $tab_menu .= '
  • ' . esc_html( $tab_args['label'] ) . '
  • '; } $this->json['choices']['section'] = $this->section; $this->json['tabMenu'] = $tab_menu; } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() * @since 1.0 */ protected function content_template() { ?>