'; echo '' . esc_html( $title ) . ''; if ( '' !== $subtitle ) { echo '' . esc_html( $subtitle ) . ''; } echo ''; } /** * Cross-page navigation between a plugin's own admin screens. * * NOT the same thing as tabs(). `tabs()` switches the `tab` query arg on * the SAME page; this links to sibling admin pages by slug. Both render * with the same chrome on purpose -- to a user they are one control -- * but they answer different questions and are not interchangeable. * * This exists because the suite's plugins are moving to one shared * top-level menu, and WordPress nests admin menus exactly twice: once a * plugin's main page is a submenu, its own child pages register but never * appear in the sidebar. Any plugin with child pages therefore needs * in-page navigation to them BEFORE it can migrate, or those pages become * reachable only by typing a URL. * * Several plugins needed this regardless of the menu work: their child * pages were already reachable only from the sidebar, and in at least one * case the sole link to a settings screen sat inside a "not configured * yet" notice that disappears the moment you configure it. * * @param array $pages Page slug => pre-translated label, * in the order they should appear. * @param string $active The slug of the current screen. * @param string $testid Optional data-testid. * * Renders nothing when $pages is empty, for the same reason tabs() does: * an empty