collapsibles = $collapsibles; } /** * Outputs the section content if any tab has been added. */ public function display_content() { if ( $this->has_sections() ) { printf( '
'; } } /** * Checks whether the tab has any sections. * * @return bool Whether the tab has any sections */ protected function has_sections() { return ! empty( $this->collapsibles ); } }